Fix formatting

This commit is contained in:
ines 2017-05-26 12:37:45 +02:00
parent 353f0ef8d7
commit 51882c4984
1 changed files with 1 additions and 0 deletions

View File

@ -174,6 +174,7 @@ def get_async(stream, numpy_array):
array.set(numpy_array, stream=stream)
return array
def itershuffle(iterable, bufsize=1000):
"""Shuffle an iterator. This works by holding `bufsize` items back
and yielding them sometime later. Obviously, this is not unbiased --