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 81276eb commit 0a3e67bCopy full SHA for 0a3e67b
Lib/_strptime.py
@@ -16,7 +16,7 @@
16
import calendar
17
from re import compile as re_compile
18
from re import sub as re_sub
19
-from re import IGNORECASE, ASCII
+from re import ASCII, IGNORECASE
20
from re import escape as re_escape
21
from datetime import (date as datetime_date,
22
timedelta as datetime_timedelta,
@@ -380,7 +380,7 @@ def repl(m):
380
381
def compile(self, format):
382
"""Return a compiled re object for the format string."""
383
- return re_compile(self.pattern(format), IGNORECASE | ASCII)
+ return re_compile(self.pattern(format), ASCII | IGNORECASE)
384
385
_cache_lock = _thread_allocate_lock()
386
# DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock
0 commit comments