We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent decd90f commit 81276ebCopy full SHA for 81276eb
1 file changed
Lib/_strptime.py
@@ -14,10 +14,9 @@
14
import time
15
import locale
16
import calendar
17
-from re import A as re_A
18
from re import compile as re_compile
19
from re import sub as re_sub
20
-from re import IGNORECASE
+from re import IGNORECASE, ASCII
21
from re import escape as re_escape
22
from datetime import (date as datetime_date,
23
timedelta as datetime_timedelta,
@@ -381,7 +380,7 @@ def repl(m):
381
380
382
def compile(self, format):
383
"""Return a compiled re object for the format string."""
384
- return re_compile(self.pattern(format), IGNORECASE | re_A)
+ return re_compile(self.pattern(format), IGNORECASE | ASCII)
385
386
_cache_lock = _thread_allocate_lock()
387
# DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock
0 commit comments