[FIX] P3: Queue module renamed to queue

This commit is contained in:
Xavier Morel
2017-05-15 12:26:32 +02:00
parent e2f1af78c4
commit 7c6c43d910
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -17,7 +17,10 @@ try:
except ImportError:
escpos = printer = None
from Queue import Queue
try:
from queue import Queue
except ImportError:
from Queue import Queue # pylint: disable=deprecated-module
from threading import Thread, Lock
try:
+4 -1
View File
@@ -5,7 +5,10 @@ import logging
import time
from os import listdir
from os.path import join
from Queue import Queue, Empty
try:
from queue import Queue, Empty
except ImportError:
from Queue import Queue, Empty # pylint: disable=deprecated-module
from select import select
from threading import Thread, Lock