Skip to content

Commit 81276eb

Browse files
sggestion
1 parent decd90f commit 81276eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/_strptime.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
import time
1515
import locale
1616
import calendar
17-
from re import A as re_A
1817
from re import compile as re_compile
1918
from re import sub as re_sub
20-
from re import IGNORECASE
19+
from re import IGNORECASE, ASCII
2120
from re import escape as re_escape
2221
from datetime import (date as datetime_date,
2322
timedelta as datetime_timedelta,
@@ -381,7 +380,7 @@ def repl(m):
381380

382381
def compile(self, format):
383382
"""Return a compiled re object for the format string."""
384-
return re_compile(self.pattern(format), IGNORECASE | re_A)
383+
return re_compile(self.pattern(format), IGNORECASE | ASCII)
385384

386385
_cache_lock = _thread_allocate_lock()
387386
# DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock

0 commit comments

Comments
 (0)