summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-04 01:15:09 (GMT)
committerGitHub <noreply@github.com>2019-06-04 01:15:09 (GMT)
commit0fd2c300c2a85b3b227a907b2a39ef79fa86d850 (patch)
treeffe391ade17e6d581878f22016b065f7306f3fca /Python/import.c
parent9535aff9421f0a5639f6e4c4bb0f07a743ea8dba (diff)
downloadcpython-0fd2c300c2a85b3b227a907b2a39ef79fa86d850.zip
cpython-0fd2c300c2a85b3b227a907b2a39ef79fa86d850.tar.gz
cpython-0fd2c300c2a85b3b227a907b2a39ef79fa86d850.tar.bz2
Revert "bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)" (GH-13795)
This reverts commit 396e0a8d9dc65453cb9d53500d0a620602656cfe.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index 68d1f40..ab7db6b 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -541,8 +541,7 @@ PyImport_Cleanup(void)
_PyGC_CollectNoFail();
/* Dump GC stats before it's too late, since it uses the warnings
machinery. */
- _PyRuntimeState *runtime = interp->runtime;
- _PyGC_DumpShutdownStats(runtime);
+ _PyGC_DumpShutdownStats(&_PyRuntime);
/* Now, if there are any modules left alive, clear their globals to
minimize potential leaks. All C extension modules actually end