Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpcdf
obs
osc-plugins
Commits
e82bd796
Commit
e82bd796
authored
Jan 13, 2021
by
Lorenz Hüdepohl
Browse files
Linter warning: 'l' not a good name..
parent
2aca69e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
mpcdf_common.py
View file @
e82bd796
...
...
@@ -278,11 +278,11 @@ class UnmanagedPackageException(Exception):
pass
def
chunked
(
l
,
chunksize
):
n
=
len
(
l
)
def
chunked
(
items
,
chunksize
):
n
=
len
(
items
)
i
=
0
while
i
*
chunksize
<
n
:
yield
l
[
i
*
chunksize
:
(
i
+
1
)
*
chunksize
]
yield
items
[
i
*
chunksize
:
(
i
+
1
)
*
chunksize
]
i
+=
1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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