Changeset 4be8e0270905…
Parent 0c91f8d135c1…
by
Changes to one file · Browse files at 4be8e0270905 Showing diff from parent 0c91f8d135c1 Diff from another changeset...
@@ -14,7 +14,7 @@ """raises the exception, performs cleanup if needed"""
if not inspect.isclass(exctype):
raise TypeError("Only types can be raised (not instances)")
- res = ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, ctypes.py_object(exctype))
+ res = ctypes.pythonapi.PyThreadState_SetAsyncExc(ctypes.c_long(tid), ctypes.py_object(exctype))
if res == 0:
raise ValueError("invalid thread id")
elif res != 1:
|
Loading...