mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Changed random calls to PyThreadState_Get() to use the macro
This commit is contained in:
parent
c69ebe8d50
commit
e5662aedef
8 changed files with 26 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue