mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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:
|
||||
raise KeyboardInterrupt
|
||||
except py_compile.PyCompileError,err:
|
||||
if quiet:
|
||||
print 'Compiling', fullname, '...'
|
||||
print err.msg
|
||||
success = 0
|
||||
except IOError, e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue