From c3729128f389bf87d817629da7c2f00566db8b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20H=C3=BCgel?= Date: Tue, 14 Dec 2021 14:38:36 +0000 Subject: [PATCH] Address Flake8 warnings --- pyzotero/zotero.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py index b4b0184..34c3d22 100644 --- a/pyzotero/zotero.py +++ b/pyzotero/zotero.py @@ -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):