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:
parent
ead8b157af
commit
aebd530aaf
@ -16,10 +16,7 @@
|
|||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
from threading import Lock, Thread, BoundedSemaphore, currentThread
|
from threading import Lock, Thread, BoundedSemaphore, currentThread
|
||||||
try:
|
from queue import Queue, Empty
|
||||||
from queue import Queue, Empty
|
|
||||||
except ImportError: # python3
|
|
||||||
from queue import Queue, Empty
|
|
||||||
import traceback
|
import traceback
|
||||||
import os.path
|
import os.path
|
||||||
from offlineimap.ui import getglobalui
|
from offlineimap.ui import getglobalui
|
||||||
|
Loading…
Reference in New Issue
Block a user