Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 31797:846b3ee7e106 legacy-trunk
Changed random calls to PyThreadState_Get() to use the macro
| author | Nicholas Bastin <nick.bastin@gmail.com> |
|---|---|
| date | Wed, 24 Mar 2004 22:22:12 +0000 |
| parents | c4bae089bfc8 |
| children | 331de8b9d1ed |
line wrap: on
line diff
--- a/Python/import.c Wed Mar 24 21:57:10 2004 +0000 +++ b/Python/import.c Wed Mar 24 22:22:12 2004 +0000 @@ -321,7 +321,7 @@ 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 @@ 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)
