threadutil imports without try except

Python 2 is not supported now. The import is the same in try and except.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-29 09:03:39 +02:00
parent ead8b157af
commit aebd530aaf

View File

@ -16,9 +16,6 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
from threading import Lock, Thread, BoundedSemaphore, currentThread
try:
from queue import Queue, Empty
except ImportError: # python3
from queue import Queue, Empty
import traceback
import os.path