diff options
| author | Nicholas Bastin <nick.bastin@gmail.com> | 2004-03-24 22:22:12 +0000 |
|---|---|---|
| committer | Nicholas Bastin <nick.bastin@gmail.com> | 2004-03-24 22:22:12 +0000 |
| commit | e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a (patch) | |
| tree | 747cb7e8126cbbf85eec3c5fe05d8b38728bba3a /Python/import.c | |
| parent | c69ebe8d50529eae281275c841428eb9b375a442 (diff) | |
| download | cpython-git-e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a.tar.gz | |
Changed random calls to PyThreadState_Get() to use the macro
Diffstat (limited to 'Python/import.c')
| -rw-r--r-- | Python/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
