• Victor Stinner's avatar
    Fix warn_invalid_escape_sequence() · f9cca365
    Victor Stinner yazdı
    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.
    f9cca365
test_string_literals.py 9.83 KB