mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
A few more PyThreadState_Get to PyThreadState_GET conversions
This commit is contained in:
parent
f167dc3380
commit
2786d90617
3 changed files with 3 additions and 3 deletions
|
@ -178,7 +178,7 @@ set_hook(const char *funcname, PyObject **hook_var,
|
|||
Py_INCREF(function);
|
||||
*hook_var = function;
|
||||
Py_XDECREF(tmp);
|
||||
*tstate = PyThreadState_Get();
|
||||
*tstate = PyThreadState_GET();
|
||||
}
|
||||
else {
|
||||
PyOS_snprintf(buf, sizeof(buf),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue