mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
Issue #16706: get rid of os.error
This commit is contained in:
parent
a191959849
commit
ad28c7f9da
33 changed files with 4089 additions and 4123 deletions
|
@ -55,7 +55,7 @@ def glob1(dirname, pattern):
|
|||
dirname = os.curdir
|
||||
try:
|
||||
names = os.listdir(dirname)
|
||||
except os.error:
|
||||
except OSError:
|
||||
return []
|
||||
if pattern[0] != '.':
|
||||
names = [x for x in names if x[0] != '.']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue