Show More
@@ -36,6 +36,10 b" next_attr_name = '__next__' if py3compat.PY3 else 'next'" | |||||
36 | ISO8601 = "%Y-%m-%dT%H:%M:%S.%f" |
|
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})?$") |
|
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 |
|
38 | |||
|
39 | # holy crap, strptime is not threadsafe. | |||
|
40 | # Calling it once at import seems to help. | |||
|
41 | datetime.strptime("1", "%d") | |||
|
42 | ||||
39 | #----------------------------------------------------------------------------- |
|
43 | #----------------------------------------------------------------------------- | |
40 | # Classes and functions |
|
44 | # Classes and functions | |
41 | #----------------------------------------------------------------------------- |
|
45 | #----------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now