• Victor Stinner's avatar
    Fix warn_invalid_escape_sequence() · 88f380eb
    Victor Stinner authored
    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.
    88f380eb
ast.c 159 KB