mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
A small tweak to avoid calling traceback.format_exception_only() with
a bogus (tuple) value. This should fix the "make install" issue Neal reported.
This commit is contained in:
parent
5590d8cc8a
commit
bd4a63e091
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ def compile(file, cfile=None, dfile=None, doraise=False):
|
|||
try:
|
||||
codeobject = __builtin__.compile(codestring, dfile or file,'exec')
|
||||
except Exception as err:
|
||||
py_exc = PyCompileError(err.__class__,err.args,dfile or file)
|
||||
py_exc = PyCompileError(err.__class__, err, dfile or file)
|
||||
if doraise:
|
||||
raise py_exc
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue