mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
parent
6a7a49c631
commit
8b33dd8e54
21 changed files with 56 additions and 56 deletions
|
@ -24,7 +24,7 @@ def main():
|
|||
for dirname in sys.path:
|
||||
try:
|
||||
names = os.listdir(dirname)
|
||||
except os.error:
|
||||
except OSError:
|
||||
print('Cannot list directory', repr(dirname))
|
||||
continue
|
||||
if not silent:
|
||||
|
@ -34,7 +34,7 @@ def main():
|
|||
name = os.path.join(dirname, name)
|
||||
try:
|
||||
st = os.stat(name)
|
||||
except os.error:
|
||||
except OSError:
|
||||
print('Cannot stat', repr(name))
|
||||
continue
|
||||
if verbose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue