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

Change-Id: I13948f73f34c396c5cb4d55b636f12b96e62f9f9
Closes-Bug: #1464935
This commit is contained in:
janonymous 2015-06-14 14:34:01 +05:30
parent e52e0b34b3
commit 7c4abe2fcc
1 changed files with 2 additions and 2 deletions

View File

@ -1143,8 +1143,8 @@ class EMCMock(mock.Mock):
while True:
try:
expect = self._get_req_from_call(iter_expect.next())
actual = self._get_req_from_call(iter_actual.next())
expect = self._get_req_from_call(next(iter_expect))
actual = self._get_req_from_call(next(iter_actual))
except StopIteration:
return True