diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-24 23:21:50 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-24 23:21:50 (GMT) |
commit | 15fa1c4ade79060e340a656e1f69c70ebe355171 (patch) | |
tree | 78f47f3f1551468932291b8706bda8249c3491aa /Lib/sre_parse.py | |
parent | 8be6be427d7af54cd2dcc5f7c8f73ec2a1e2dfcc (diff) | |
download | cpython-15fa1c4ade79060e340a656e1f69c70ebe355171.zip cpython-15fa1c4ade79060e340a656e1f69c70ebe355171.tar.gz cpython-15fa1c4ade79060e340a656e1f69c70ebe355171.tar.bz2 |
Fixed using deprecated escaping in regular expression in _strptime.py (issue23622).
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r-- | Lib/sre_parse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py index af729c3..e6f1f1d 100644 --- a/Lib/sre_parse.py +++ b/Lib/sre_parse.py @@ -915,7 +915,7 @@ def parse_template(source, pattern): if c in ASCIILETTERS: import warnings warnings.warn('bad escape %s' % this, - DeprecationWarning, stacklevel=5) + DeprecationWarning, stacklevel=4) lappend(this) else: lappend(this) |