Commits

Jason R. Coombs committed c853d9b

Use six.moves for queue for Python 2 compatibility

Comments (0)

Files changed (1)

jaraco/util/itertools.py

 import collections
 import math
 import functools
-import queue
 
 import six
 from more_itertools import more
 		values.extend(iter([]) for n in range(missing))
 		return values
 
-class FetchingQueue(queue.Queue):
+class FetchingQueue(six.moves.queue.Queue):
 	"""
 	A FIFO Queue that is supplied with a function to inject more into
 	the queue if it is empty.