Skip to content

Commit

Permalink
Address Flake8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Dec 14, 2021
1 parent 141e49c commit c372912
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyzotero/zotero.py
Expand Up @@ -87,10 +87,10 @@ def enc(self, *args, **kwargs):
return enc


def chunks(l, n):
def chunks(iterable, n):
"""Yield successive n-sized chunks from l."""
for i in range(0, len(l), n):
yield l[i : i + n]
for i in range(0, len(iterable), n):
yield iterable[i : i + n]


def tcache(func):
Expand Down

0 comments on commit c372912

Please sign in to comment.