replace iterator.next() with next(iterator)
According to https://wiki.openstack.org/wiki/Python3 iterator.next() should be replaced with next(iterator). Change-Id: I9c559ab32df520704cef4ea24c7607e646e1bf8e
This commit is contained in:
parent
c4e0294fca
commit
c01e1ec05f
@ -633,7 +633,7 @@ class ImageReadHandle(object):
|
||||
uses its own chunk size.
|
||||
"""
|
||||
try:
|
||||
data = self._iter.next()
|
||||
data = next(self._iter)
|
||||
LOG.debug("Read %d bytes from the image iterator.", len(data))
|
||||
return data
|
||||
except StopIteration:
|
||||
|
Loading…
x
Reference in New Issue
Block a user