Skip to content
Snippets Groups Projects
Commit 93a1a4fe authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

hgmanpage: use a py2 and py3 compatible iterable protocol

parent 51df7265
No related branches found
No related tags found
No related merge requests found
......@@ -335,7 +335,7 @@
elif style.endswith('roman'):
self._indent = 5
def next(self):
def __next__(self):
if self._style == 'bullet':
return self.enum_style[self._style]
elif self._style == 'emdash':
......@@ -353,6 +353,9 @@
return res.lower()
else:
return "%d." % self._cnt
next = __next__
def get_width(self):
return self._indent
def __repr__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment