Skip to content

Commit

Permalink
Attempt importing from both queue and Queue
Browse files Browse the repository at this point in the history
  • Loading branch information
obradovic committed Nov 8, 2019
1 parent 355b46e commit 0ee62d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion breadpool/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
for these, however it can be a lot easier if they come in a `pip install`.
"""

from queue import Queue, Empty
try:
from queue import Queue, Empty
except:
from Queue import Queue, Empty
from threading import Thread, RLock as rLock
# import traceback
import logging
Expand Down

0 comments on commit 0ee62d0

Please sign in to comment.