1. Jason R. Coombs
  2. jaraco.util


Jason R. Coombs  committed c853d9b

Use six.moves for queue for Python 2 compatibility

  • Participants
  • Parent commits cde8a74
  • Branches default
  • Tags 10.0.1

Comments (0)

Files changed (1)

File jaraco/util/itertools.py

View file
 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.