Index: Lib/_strptime.py |
=================================================================== |
--- Lib/_strptime.py (revision 65250) |
+++ Lib/_strptime.py (working copy) |
@@ -14,7 +14,7 @@ |
import locale |
import calendar |
from re import compile as re_compile |
-from re import IGNORECASE |
+from re import IGNORECASE, ASCII |
from re import escape as re_escape |
from datetime import date as datetime_date |
try: |
@@ -262,7 +262,7 @@ |
def compile(self, format): |
"""Return a compiled re object for the format string.""" |
- return re_compile(self.pattern(format), IGNORECASE) |
+ return re_compile(self.pattern(format), IGNORECASE | ASCII) |
_cache_lock = _thread_allocate_lock() |
# DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock |