summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-21 18:33:30 +0000
committerGuido van Rossum <guido@python.org>1998-12-21 18:33:30 +0000
commit66261ee76c7be0abf6fb99ef97338a88fd66ed24 (patch)
tree5be4596b4d6461e829cdc9573a9308b1393e2da3 /Python/errors.c
parenta7f2a883522fc886924ae4a9b36beb9e83439681 (diff)
downloadcpython-66261ee76c7be0abf6fb99ef97338a88fd66ed24.tar.gz
Use PyThreadState_GET() macro.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 423f792538..f2768ee43d 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -55,7 +55,7 @@ PyErr_Restore(type, value, traceback)
PyObject *value;
PyObject *traceback;
{
- PyThreadState *tstate = PyThreadState_Get();
+ PyThreadState *tstate = PyThreadState_GET();
PyObject *oldtype, *oldvalue, *oldtraceback;
if (traceback != NULL && !PyTraceBack_Check(traceback)) {