#7842: backport fix for py_compile.compile syntax error message handling.

This commit is contained in:
R David Murray 2013-02-19 20:00:11 -05:00
parent 5aff27aec1
commit c32b678fd0
2 changed files with 3 additions and 1 deletions

View file

@ -112,7 +112,7 @@ def compile(file, cfile=None, dfile=None, doraise=False):
try:
codeobject = __builtin__.compile(codestring, dfile or file,'exec')
except Exception,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:

View file

@ -208,6 +208,8 @@ Core and Builtins
Library
-------
- Issue #7842: backported fix for py_compile.compile() syntax error handling.
- Issue #13153: Tkinter functions now raise TclError instead of ValueError when
a unicode argument contains non-BMP character.