Skip to content

Commit

Permalink
Nitpick: cleanup: remove redundant iter(...) function call.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed May 8, 2024
1 parent d47cc3c commit 136c5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quicktill/pdrivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _lpgetstatus(f):
def _chunks(iterable, chunk_size):
"""Produce chunks of up-to a parameterised size from an iterable input."""
chunk = []
for item in iter(iterable):
for item in iterable:
chunk.append(item)
if len(chunk) == chunk_size:
yield chunk
Expand Down

0 comments on commit 136c5b9

Please sign in to comment.