summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index a80c1b7..a370fff 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -2528,16 +2528,7 @@ PyGILState_Check(void)
return 0;
}
-#ifdef MS_WINDOWS
- int err = GetLastError();
-#endif
-
PyThreadState *tcur = gilstate_tss_get(runtime);
-
-#ifdef MS_WINDOWS
- SetLastError(err);
-#endif
-
return (tstate == tcur);
}