Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 29216:ead25aa27a43
py3: convert to next() function
next(..) was introduced in py2.6 and .next() is not available in py3
https://docs.python.org/2/library/functions.html#next
author | timeless <timeless@mozdev.org> |
---|---|
date | Mon, 16 May 2016 21:30:53 +0000 |
parents | d115cbf5980b |
children | 14eee72c8d52 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon May 16 21:30:32 2016 +0000 +++ b/mercurial/cmdutil.py Mon May 16 21:30:53 2016 +0000 @@ -1998,7 +1998,7 @@ followfirst = 0 # --follow with FILE behavior depends on revs... it = iter(revs) - startrev = it.next() + startrev = next(it) followdescendants = startrev < next(it, startrev) # branch and only_branch are really aliases and must be handled at