mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
Issue #8793: Prevent IDLE crash in 2.7 when given strings with
invalid hex escape sequences.
This commit is contained in:
parent
30402549de
commit
174c4f897f
2 changed files with 4 additions and 1 deletions
|
@ -101,7 +101,7 @@ class ScriptBinding:
|
|||
try:
|
||||
# If successful, return the compiled code
|
||||
return compile(source, filename, "exec")
|
||||
except (SyntaxError, OverflowError), err:
|
||||
except (SyntaxError, OverflowError, ValueError), err:
|
||||
try:
|
||||
msg, (errorfilename, lineno, offset, line) = err
|
||||
if not errorfilename:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue