diff --git a/hgext/color.py b/hgext/color.py --- a/hgext/color.py +++ b/hgext/color.py @@ -116,7 +116,7 @@ def colorstatus(orig, ui, repo, *pats, * lines = lines_with_status # apply color to output and display it - for i in xrange(0, len(lines)): + for i in xrange(len(lines)): status = _status_abbreviations[lines_with_status[i][0]] effects = _status_effects[status] if effects: diff --git a/hgext/hgk.py b/hgext/hgk.py --- a/hgext/hgk.py +++ b/hgext/hgk.py @@ -188,7 +188,7 @@ def revtree(ui, args, repo, full="tree", else: i -= chunk - for x in xrange(0, chunk): + for x in xrange(chunk): if i + x >= count: l[chunk - x:] = [0] * (chunk - x) break diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1407,7 +1407,7 @@ class queue: series = [] applied = [] qpp = None - for i in xrange(0, len(lines)): + for i in xrange(len(lines)): if lines[i] == 'Patch Data:': datastart = i + 1 elif lines[i].startswith('Dirstate:'): diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -36,7 +36,7 @@ def _collectextranodes(repo, files, link extra = [] startrev = count = len(revlog) # find the truncation point of the revlog - for i in xrange(0, count): + for i in xrange(count): lrev = revlog.linkrev(i) if lrev >= link: startrev = i + 1 diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1162,7 +1162,7 @@ class revlog(object): revs.insert(0, p) # build deltas - for d in xrange(0, len(revs) - 1): + for d in xrange(len(revs) - 1): a, b = revs[d], revs[d + 1] nb = self.node(b)