mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-07-09 08:29:02 +00:00
Use next(iterator) rather than iterator.next()
iterator.next() was replaced with iterator.__next__() in Python 3. Use next(iterator) instead which will select the correct method for returning the next item. Change-Id: I6d0c89c8b32e817e5897fe87332933dacf22027b
This commit is contained in:
@ -2321,8 +2321,8 @@ class Project(object):
|
||||
out = iter(out[:-1].split('\0')) # pylint: disable=W1401
|
||||
while out:
|
||||
try:
|
||||
info = out.next()
|
||||
path = out.next()
|
||||
info = next(out)
|
||||
path = next(out)
|
||||
except StopIteration:
|
||||
break
|
||||
|
||||
@ -2348,7 +2348,7 @@ class Project(object):
|
||||
info = _Info(path, *info)
|
||||
if info.status in ('R', 'C'):
|
||||
info.src_path = info.path
|
||||
info.path = out.next()
|
||||
info.path = next(out)
|
||||
r[info.path] = info
|
||||
return r
|
||||
finally:
|
||||
|
Reference in New Issue
Block a user