summaryrefslogtreecommitdiff
path: root/paste/util/killthread.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/util/killthread.py')
-rw-r--r--paste/util/killthread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/util/killthread.py b/paste/util/killthread.py
index f1fc93f..4df4f42 100644
--- a/paste/util/killthread.py
+++ b/paste/util/killthread.py
@@ -1,7 +1,7 @@
"""
Kill a thread, from http://sebulba.wikispaces.com/recipe+thread2
"""
-import types
+import six
try:
import ctypes
except ImportError:
@@ -16,7 +16,7 @@ def async_raise(tid, exctype):
tid is the value given by thread.get_ident() (an integer).
Raise SystemExit to kill a thread."""
- if not isinstance(exctype, (types.ClassType, type)):
+ if not isinstance(exctype, (six.class_types, type)):
raise TypeError("Only types can be raised (not instances)")
if not isinstance(tid, int):
raise TypeError("tid must be an integer")