mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
parent
6a7a49c631
commit
8b33dd8e54
21 changed files with 56 additions and 56 deletions
|
@ -29,7 +29,7 @@ def main():
|
|||
filename = os.path.join(dir, prog)
|
||||
try:
|
||||
st = os.stat(filename)
|
||||
except os.error:
|
||||
except OSError:
|
||||
continue
|
||||
if not S_ISREG(st[ST_MODE]):
|
||||
msg(filename + ': not a disk file')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue