diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-25 01:21:50 +0200 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-25 01:21:50 +0200 |
| commit | 15fa1c4ade79060e340a656e1f69c70ebe355171 (patch) | |
| tree | 78f47f3f1551468932291b8706bda8249c3491aa /Lib/sre_parse.py | |
| parent | 8be6be427d7af54cd2dcc5f7c8f73ec2a1e2dfcc (diff) | |
| download | cpython-git-15fa1c4ade79060e340a656e1f69c70ebe355171.tar.gz | |
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 af729c30db..e6f1f1d839 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) |
