summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-11-15 09:12:10 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-11-15 09:12:10 +0100
commitda22e7f2daa3cdcae574441f05526e8231a8ad3b (patch)
tree9b1613808a221708353147c053359d7f80e4a67f /Python/errors.c
parent109c5479d5dd1ad9fc68484f81b5e27e05b25abc (diff)
downloadcpython-da22e7f2daa3cdcae574441f05526e8231a8ad3b.tar.gz
Fix warn_invalid_escape_sequence()
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.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions