Переглянути джерело

Make use of a more elegant interface to threading in Python3

Yentl Van Tendeloo 7 роки тому
батько
коміт
eb263e072d

+ 3 - 2
src/python_sccd/python_sccd_runtime/statecharts_core.py

@@ -8,9 +8,10 @@ import threading
 import sys
 
 try:
-    import _thread as thread
-except ImportError:
     import thread
+except ImportError:
+    import threading as thread
+
 import traceback
 import math
 from heapq import heappush, heappop, heapify