mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fixed using deprecated escaping in regular expression in _strptime.py (issue23622).
This commit is contained in:
parent
8be6be427d
commit
15fa1c4ade
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue