invalid hex escape sequences.
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:
Library
-------
+- Issue #8793: Prevent IDLE crash when given strings with invalid hex escape
+ sequences.
+
- Issues #1745761, #755670, #13357, #12629, #1200313: HTMLParser now correctly
handles non-valid attributes, including adjacent and unquoted attributes.