diff options
author | 2012-12-17 23:35:18 +0200 | |
---|---|---|
committer | 2012-12-17 23:35:18 +0200 | |
commit | 3438fa496db50ef3cafcfdb3243f2f769bc12ebe (patch) | |
tree | 8c480821ca46d7d91d4f3ba8c8343afe389d7208 /Lib/compileall.py | |
parent | Replace mmap.error with OSError, #16705 (diff) | |
download | cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.gz cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.bz2 cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.zip |
Get rig of EnvironmentError (#16705)
Diffstat (limited to 'Lib/compileall.py')
-rw-r--r-- | Lib/compileall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py index d3cff6a98ad..fd22fc3c1bc 100644 --- a/Lib/compileall.py +++ b/Lib/compileall.py @@ -209,7 +209,7 @@ def main(): with (sys.stdin if args.flist=='-' else open(args.flist)) as f: for line in f: compile_dests.append(line.strip()) - except EnvironmentError: + except OSError: print("Error reading file list {}".format(args.flist)) return False |