commit | f9cca365c72eaa932f1bee6407fbbbc3b4ed96f0 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Nov 15 09:12:10 2016 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Tue Nov 15 09:12:10 2016 +0100 |
tree | 12858858baf93a9b88cc36aa9c938595df28d025 | |
parent | de40e1218c8dff29ee9de634034e3ed7b3979c86 [diff] |
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.