Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
gh-83461: Don't allow datetime parsing to accept non-ASCII digits#131008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
c20c6da
decd90f
81276eb
0a3e67b
5d1d53d
a0b0f07
d0e6a1f
2f6d8e2
ccabadf
35bc090
0637c29
71d7c8a
212c763
0201347
bebb241
40d2368
77c936a
e652581
0115ee4
25a6705
3bca8e9
ddd1d01
0139e57
be40130
f4c4751
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -14,10 +14,9 @@ | ||
import time | ||
import locale | ||
import calendar | ||
from re import compile as re_compile | ||
from re import sub as re_sub | ||
from re import IGNORECASE, ASCII | ||
StanFromIreland marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
from re import escape as re_escape | ||
from datetime import (date as datetime_date, | ||
timedelta as datetime_timedelta, | ||
@@ -381,7 +380,7 @@ def repl(m): | ||
def compile(self, format): | ||
"""Return a compiled re object for the format string.""" | ||
return re_compile(self.pattern(format), IGNORECASE |ASCII) | ||
StanFromIreland marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
_cache_lock = _thread_allocate_lock() | ||
# DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock | ||
Uh oh!
There was an error while loading.Please reload this page.