Skip to content

Commit 0a3e67b

Browse files
Alphabetical order…
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 81276eb commit 0a3e67b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_strptime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import calendar
1717
from re import compile as re_compile
1818
from re import sub as re_sub
19-
from re import IGNORECASE, ASCII
19+
from re import ASCII, IGNORECASE
2020
from re import escape as re_escape
2121
from datetime import (date as datetime_date,
2222
timedelta as datetime_timedelta,
@@ -380,7 +380,7 @@ def repl(m):
380380

381381
def compile(self, format):
382382
"""Return a compiled re object for the format string."""
383-
return re_compile(self.pattern(format), IGNORECASE | ASCII)
383+
return re_compile(self.pattern(format), ASCII | IGNORECASE)
384384

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

0 commit comments

Comments
 (0)