summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNicholas Bastin <nick.bastin@gmail.com>2004-03-25 02:16:23 (GMT)
committerNicholas Bastin <nick.bastin@gmail.com>2004-03-25 02:16:23 (GMT)
commit2786d90617993c5958a477067b20882395de5ac9 (patch)
treedf54e4547422e555f8d36277acb6d387793b06cc /Modules
parentf167dc33805ad5e9c15327628969b91383eca037 (diff)
downloadcpython-2786d90617993c5958a477067b20882395de5ac9.zip
cpython-2786d90617993c5958a477067b20882395de5ac9.tar.gz
cpython-2786d90617993c5958a477067b20882395de5ac9.tar.bz2
A few more PyThreadState_Get to PyThreadState_GET conversions
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_bsddb.c2
-rw-r--r--Modules/readline.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index 444a009..6eb4866 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -4457,7 +4457,7 @@ DL_EXPORT(void) init_bsddb(void)
#if defined(WITH_THREAD) && !defined(MYDB_USE_GILSTATE)
/* Save the current interpreter, so callbacks can do the right thing. */
- _db_interpreterState = PyThreadState_Get()->interp;
+ _db_interpreterState = PyThreadState_GET()->interp;
#endif
/* Create the module and add the functions */
diff --git a/Modules/readline.c b/Modules/readline.c
index e151537..37baf87 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -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),