Fix thread import for py3
This commit is contained in:
parent
cca71837b4
commit
3108c9124a
1 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
|||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2014 Bastian Kleineidam
|
||||
import threading
|
||||
import thread
|
||||
import os
|
||||
import threading
|
||||
try:
|
||||
import _thread as thread
|
||||
except ImportError:
|
||||
import thread
|
||||
try:
|
||||
from Queue import Queue, Empty
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in a new issue