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:
Christian Berendt 2014-06-09 10:11:06 +02:00
parent c4e0294fca
commit c01e1ec05f

View File

@ -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: