Commit ff21e5ab authored by Denis Bilenko's avatar Denis Bilenko

queue.py: use __import__('Queue.py') to avoid confusion on case-insensitive file systems

parent 63f671d1
......@@ -25,11 +25,11 @@ import heapq
import collections
if sys.version_info[0] == 2:
from Queue import Full, Empty
__queue__ = __import__('Queue')
else:
__queue__ = __import__('queue')
Full = __queue__.Full
Empty = __queue__.Empty
Full = __queue__.Full
Empty = __queue__.Empty
from gevent.timeout import Timeout
from gevent.hub import get_hub, Waiter, getcurrent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment