##// END OF EJS Templates
doc: remove has_key usage in hgmanpage
Nicolas Dumazet -
r11643:50fede14 stable
parent child Browse files
Show More
@@ -303,7 +303,7 b' class Translator(nodes.NodeVisitor):'
303
303
304 def __init__(self, style):
304 def __init__(self, style):
305 self._style = style
305 self._style = style
306 if node.has_key('start'):
306 if 'start' in node:
307 self._cnt = node['start'] - 1
307 self._cnt = node['start'] - 1
308 else:
308 else:
309 self._cnt = 0
309 self._cnt = 0
@@ -345,7 +345,7 b' class Translator(nodes.NodeVisitor):'
345 def __repr__(self):
345 def __repr__(self):
346 return 'enum_style-%s' % list(self._style)
346 return 'enum_style-%s' % list(self._style)
347
347
348 if node.has_key('enumtype'):
348 if 'enumtype' in node:
349 self._list_char.append(enum_char(node['enumtype']))
349 self._list_char.append(enum_char(node['enumtype']))
350 else:
350 else:
351 self._list_char.append(enum_char('bullet'))
351 self._list_char.append(enum_char('bullet'))
General Comments 0
You need to be logged in to leave comments. Login now