Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2786d90

Browse files
committed
A few more PyThreadState_Get to PyThreadState_GET conversions
1 parent f167dc3 commit 2786d90

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/_bsddb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4457,7 +4457,7 @@ DL_EXPORT(void) init_bsddb(void)
44574457

44584458
#if defined(WITH_THREAD) && !defined(MYDB_USE_GILSTATE)
44594459
/* Save the current interpreter, so callbacks can do the right thing. */
4460-
_db_interpreterState = PyThreadState_Get()->interp;
4460+
_db_interpreterState = PyThreadState_GET()->interp;
44614461
#endif
44624462

44634463
/* Create the module and add the functions */

Modules/readline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ set_hook(const char *funcname, PyObject **hook_var,
178178
Py_INCREF(function);
179179
*hook_var = function;
180180
Py_XDECREF(tmp);
181-
*tstate = PyThreadState_Get();
181+
*tstate = PyThreadState_GET();
182182
}
183183
else {
184184
PyOS_snprintf(buf, sizeof(buf),

Python/dynload_shlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
109109
}
110110

111111
#if !(defined(PYOS_OS2) && defined(PYCC_GCC))
112-
dlopenflags = PyThreadState_Get()->interp->dlopenflags;
112+
dlopenflags = PyThreadState_GET()->interp->dlopenflags;
113113
#endif
114114

115115
if (Py_VerboseFlag)

0 commit comments

Comments
 (0)