mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Patch #975885: print file name in err msg in quiet mode
This commit is contained in:
parent
28224f897a
commit
873a277eb4
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ def compile_dir(dir, maxlevels=10, ddir=None,
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise KeyboardInterrupt
|
raise KeyboardInterrupt
|
||||||
except py_compile.PyCompileError,err:
|
except py_compile.PyCompileError,err:
|
||||||
|
if quiet:
|
||||||
|
print 'Compiling', fullname, '...'
|
||||||
print err.msg
|
print err.msg
|
||||||
success = 0
|
success = 0
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue