Skip to content

Commit

Permalink
Merge 3311e4b into f07107a
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaley committed Oct 6, 2020
2 parents f07107a + 3311e4b commit 862f124
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kinto_http/utils.py
Expand Up @@ -38,15 +38,15 @@ def quote(text):
return '"{0}"'.format(text)


def chunks(l, n):
"""Yield successive n-sized chunks from l.
def chunks(lst, n):
"""Yield successive n-sized chunks from lst.
Source: http://stackoverflow.com/a/312464
"""
if n > 0:
for i in range(0, len(l), n):
yield l[i : i + n]
for i in range(0, len(lst), n):
yield lst[i : i + n]
else:
yield l
yield lst


def json_iso_datetime(obj):
Expand Down

0 comments on commit 862f124

Please sign in to comment.