Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Radek Hušek
group-connectivity-pub
Commits
91f2d78d
Commit
91f2d78d
authored
Dec 13, 2015
by
Radek Hušek
Committed by
Radek Hušek
Nov 09, 2017
Browse files
small fix in chunkme()
parent
e7350527
Changes
1
Hide whitespace changes
Inline
Side-by-side
parmap.py
View file @
91f2d78d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment