From e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a Mon Sep 17 00:00:00 2001 From: Nicholas Bastin Date: Wed, 24 Mar 2004 22:22:12 +0000 Subject: Changed random calls to PyThreadState_Get() to use the macro --- Python/import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/import.c') diff --git a/Python/import.c b/Python/import.c index 5b9f162387..5479677aa3 100644 --- a/Python/import.c +++ b/Python/import.c @@ -321,7 +321,7 @@ imp_release_lock(PyObject *self, PyObject *noargs) PyObject * PyImport_GetModuleDict(void) { - PyInterpreterState *interp = PyThreadState_Get()->interp; + PyInterpreterState *interp = PyThreadState_GET()->interp; if (interp->modules == NULL) Py_FatalError("PyImport_GetModuleDict: no module dictionary!"); return interp->modules; @@ -353,7 +353,7 @@ PyImport_Cleanup(void) int pos, ndone; char *name; PyObject *key, *value, *dict; - PyInterpreterState *interp = PyThreadState_Get()->interp; + PyInterpreterState *interp = PyThreadState_GET()->interp; PyObject *modules = interp->modules; if (modules == NULL) -- cgit v1.2.1