Commit 91f2d78d authored by Radek Hušek's avatar Radek Hušek Committed by Radek Hušek
Browse files

small fix in chunkme()

parent e7350527
......@@ -8,10 +8,10 @@ from itertools import chain
def chunkme(X, chunksize):
chunk = []
for x in X:
chunk.append(x)
if len(chunk) >= chunksize:
yield chunk
chunk = []
chunk.append(x)
if len(chunk):
yield chunk
......
Supports Markdown
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