# HG changeset patch # User Martin von Zweigbergk # Date 1562880083 25200 # Node ID 45508676ed00b3f24da7bd3ab459ae7a57d32337 # Parent 46c990705a961c82ccc70602ed03b597b9723bbd py3: replace iter.next() by next(iter) diff -r 46c990705a96 -r 45508676ed00 hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Thu Jul 11 14:16:48 2019 -0700 +++ b/hgext3rd/evolve/evolvecmd.py Thu Jul 11 14:21:23 2019 -0700 @@ -204,7 +204,7 @@ msg = _('skipping %s : we do not handle merge yet\n') % bumped ui.write_err(msg) return (False, ".") - prec = repo.set('last(allpredecessors(%d) and public())', bumped.rev()).next() + prec = next(repo.set('last(allpredecessors(%d) and public())', bumped.rev())) # For now we deny target merge if len(prec.parents()) > 1: msg = _('skipping: %s: public version is a merge, ' diff -r 46c990705a96 -r 45508676ed00 hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py Thu Jul 11 14:16:48 2019 -0700 +++ b/hgext3rd/evolve/obshistory.py Thu Jul 11 14:21:23 2019 -0700 @@ -793,7 +793,7 @@ def _getdifflines(iterdiff): """return a cleaned up lines""" try: - lines = iterdiff.next() + lines = next(iterdiff) except StopIteration: return None return _prepare_hunk(lines) diff -r 46c990705a96 -r 45508676ed00 hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Thu Jul 11 14:16:48 2019 -0700 +++ b/hgext3rd/evolve/stablerange.py Thu Jul 11 14:21:23 2019 -0700 @@ -764,7 +764,7 @@ if value is None: revs = self.revsfromrange(repo, (merge, 0)) i = reversed(revs) - i.next() # pop the merge + next(i) # pop the merge expected = len(revs) - 1 # Since we do warmup properly, we can expect the cache to be hot # for everythin under the merge we investigate diff -r 46c990705a96 -r 45508676ed00 hgext3rd/evolve/templatekw.py --- a/hgext3rd/evolve/templatekw.py Thu Jul 11 14:16:48 2019 -0700 +++ b/hgext3rd/evolve/templatekw.py Thu Jul 11 14:21:23 2019 -0700 @@ -264,7 +264,7 @@ # Empty the generator try: while True: - chunkstr.append(chunk.next()) + chunkstr.append(next(chunk)) except StopIteration: pass