comparison 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
comparison
equal deleted inserted replaced
29215:f5983805574e 29216:ead25aa27a43
791 self.body.append('\n') 791 self.body.append('\n')
792 792
793 def visit_list_item(self, node): 793 def visit_list_item(self, node):
794 # man 7 man argues to use ".IP" instead of ".TP" 794 # man 7 man argues to use ".IP" instead of ".TP"
795 self.body.append('.IP %s %d\n' % ( 795 self.body.append('.IP %s %d\n' % (
796 self._list_char[-1].next(), 796 next(self._list_char[-1]),
797 self._list_char[-1].get_width(),)) 797 self._list_char[-1].get_width(),))
798 798
799 def depart_list_item(self, node): 799 def depart_list_item(self, node):
800 pass 800 pass
801 801