Browse Source

Fix flatisfy.tools.batch with Python3

updated_weboob
Lucas Verney 5 years ago
parent
commit
9b087729d3
  1. 2
      flatisfy/tools.py

2
flatisfy/tools.py

@ -105,7 +105,7 @@ def batch(iterable, size): @@ -105,7 +105,7 @@ def batch(iterable, size):
sourceiter = iter(iterable)
while True:
batchiter = itertools.islice(sourceiter, size)
yield itertools.chain([batchiter.next()], batchiter)
yield itertools.chain([next(batchiter)], batchiter)
def is_within_interval(value, min_value=None, max_value=None):

Loading…
Cancel
Save