# HG changeset patch # User Philippe Pepiot # Date 2019-04-04 17:08:05 # Node ID 51df72655b1aaca12153252b8660d3363b55c9dc # Parent ec7b478f1bf8374ffaabf82d3dd1af55b9720d2d hgmanpage: use range instead of xrange diff --git a/doc/hgmanpage.py b/doc/hgmanpage.py --- a/doc/hgmanpage.py +++ b/doc/hgmanpage.py @@ -263,7 +263,7 @@ class Translator(nodes.NodeVisitor): # ensure we get a ".TH" as viewers require it. self.head.append(self.header()) # filter body - for i in xrange(len(self.body) - 1, 0, -1): + for i in range(len(self.body) - 1, 0, -1): # remove superfluous vertical gaps. if self.body[i] == '.sp\n': if self.body[i - 1][:4] in ('.BI ','.IP '):