Merge "Downloading image with --progress fails for python3"
This commit is contained in:
@@ -471,6 +471,9 @@ class IterableWithLength(object):
|
||||
def next(self):
|
||||
return next(self.iterable)
|
||||
|
||||
# In Python 3, __next__() has replaced next().
|
||||
__next__ = next
|
||||
|
||||
def __len__(self):
|
||||
return self.length
|
||||
|
||||
|
||||
Reference in New Issue
Block a user