summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-12-08 23:46:09 (GMT)
committerGitHub <noreply@github.com>2022-12-08 23:46:09 (GMT)
commit8a3f06c54b52e5e7490a131b261384baac9d6090 (patch)
treeffbb65d3491ecb020e72a84e4bcf35008a602ffa /Python
parentcda9f0236fd7800c6db5eec207668c4bfec4a45d (diff)
downloadcpython-8a3f06c54b52e5e7490a131b261384baac9d6090.zip
cpython-8a3f06c54b52e5e7490a131b261384baac9d6090.tar.gz
cpython-8a3f06c54b52e5e7490a131b261384baac9d6090.tar.bz2
gh-81057: Move time Globals to _PyRuntimeState (gh-100122)
https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Python')
-rw-r--r--Python/pylifecycle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 8209132..e13660f 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -606,6 +606,11 @@ pycore_init_runtime(_PyRuntimeState *runtime,
return status;
}
+ status = _PyTime_Init();
+ if (_PyStatus_EXCEPTION(status)) {
+ return status;
+ }
+
status = _PyImport_Init();
if (_PyStatus_EXCEPTION(status)) {
return status;