diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-12-08 23:46:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-08 23:46:09 (GMT) |
commit | 8a3f06c54b52e5e7490a131b261384baac9d6090 (patch) | |
tree | ffbb65d3491ecb020e72a84e4bcf35008a602ffa /Python | |
parent | cda9f0236fd7800c6db5eec207668c4bfec4a45d (diff) | |
download | cpython-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.c | 5 |
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; |