Mercurial > public > mercurial-scm > hg-stable
diff doc/hgmanpage.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 | 7c0297bfe8bf |
children | a181dbef8e7f |
line wrap: on
line diff
--- a/doc/hgmanpage.py Mon May 16 21:30:32 2016 +0000 +++ b/doc/hgmanpage.py Mon May 16 21:30:53 2016 +0000 @@ -793,7 +793,7 @@ def visit_list_item(self, node): # man 7 man argues to use ".IP" instead of ".TP" self.body.append('.IP %s %d\n' % ( - self._list_char[-1].next(), + next(self._list_char[-1]), self._list_char[-1].get_width(),)) def depart_list_item(self, node):