Merge "Replace it.next() with next(it) for py3 compat"

This commit is contained in:
Jenkins 2015-06-16 05:33:29 +00:00 committed by Gerrit Code Review
commit d216e6bfb0
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