Thanks to visit codestin.com Credit goes to github.com
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 0da2644 commit ba5c31bCopy full SHA for ba5c31b
1 file changed
IPython/utils/jsonutil.py
@@ -36,6 +36,10 @@
36
ISO8601 = "%Y-%m-%dT%H:%M:%S.%f"
37
ISO8601_PAT=re.compile(r"^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})(\.\d{1,6})?Z?([\+\-]\d{2}:?\d{2})?$")
38
39
+# holy crap, strptime is not threadsafe.
40
+# Calling it once at import seems to help.
41
+datetime.strptime("1", "%d")
42
+
43
#-----------------------------------------------------------------------------
44
# Classes and functions
45
0 commit comments