Merge "Downloading image with --progress fails for python3"

This commit is contained in:
Jenkins
2017-05-29 11:54:55 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -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