Commit 9b6a8178 authored by Denis Bilenko's avatar Denis Bilenko

queue.py: do not use ImportError to detect python3

parent 6e68a7dd
......@@ -24,9 +24,9 @@ import sys
import heapq
import collections
try:
if sys.version_info[0] == 2:
from Queue import Full, Empty
except ImportError:
else:
__queue__ = __import__('queue')
Full = __queue__.Full
Empty = __queue__.Empty
......
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