| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
(cherry picked from commit 8f4ef3b019ce380022018587571b0f970e668de3)
|
|
|
|
|
|
|
| |
It checks that a SyntaxWarning is raised when compile specified
statement, that it is raised only once, that it is converted to
a SyntaxError when raised as exception, and that both warning and
exception objects have corresponding attributes.
|
| |
|
|
|
|
| |
for invalid escape sequences in string and bytes literals.
|
|
|
|
|
|
|
|
| |
Issue #28691: Fix warn_invalid_escape_sequence(): handle correctly
DeprecationWarning raised as an exception. First clear the current exception to
replace the DeprecationWarning exception with a SyntaxError exception.
Unit test written by Serhiy Storchaka.
|
|
|
|
| |
escapes. Backport to 3.6.
|
|
|