]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Replace it.next() with next(it) for py3 compat
authorVictor Stinner <vstinner@redhat.com>
Wed, 10 Jun 2015 12:55:52 +0000 (14:55 +0200)
committerVictor Stinner <vstinner@redhat.com>
Thu, 11 Jun 2015 16:28:48 +0000 (18:28 +0200)
commitf25cc1a6d82256e78144478e922e866e4b34abca
treebdb568cbc1d0541e54fac24565580536ca456111
parent6feb65dcf4690f236afcf89bfd9509462c55befe
Replace it.next() with next(it) for py3 compat

The Python 2 next() method of iterators was renamed to __next__() on
Python 3. Use the builtin next() function instead which works on Python
2 and Python 3.

This patch was generated by the next operation of the sixer tool:
https://pypi.python.org/pypi/sixer

Manual changes:

* cinder/tests/unit/test_cmd.py: use "tpgs = iter([tpg])" instead of
  using a magic mock for tpgs

Blueprint cinder-python3
Change-Id: I261f8cda231d80910f27b9c1329f1d43ccdd77b6
cinder/api/openstack/wsgi.py
cinder/api/urlmap.py
cinder/cmd/rtstool.py
cinder/image/glance.py
cinder/tests/unit/api/openstack/test_wsgi.py
cinder/tests/unit/test_cmd.py
cinder/volume/drivers/datera.py
cinder/volume/drivers/lvm.py