# HG changeset patch # User Nicolas Dumazet # Date 2010-07-22 05:33:50 # Node ID 50fede14fe4d3e1e771c3f565137d9b9ebb34908 # Parent 7f3581c5ad9314e36d3dc69f23989dceebc05ee8 doc: remove has_key usage in hgmanpage diff --git a/doc/hgmanpage.py b/doc/hgmanpage.py --- a/doc/hgmanpage.py +++ b/doc/hgmanpage.py @@ -303,7 +303,7 @@ class Translator(nodes.NodeVisitor): def __init__(self, style): self._style = style - if node.has_key('start'): + if 'start' in node: self._cnt = node['start'] - 1 else: self._cnt = 0 @@ -345,7 +345,7 @@ class Translator(nodes.NodeVisitor): def __repr__(self): return 'enum_style-%s' % list(self._style) - if node.has_key('enumtype'): + if 'enumtype' in node: self._list_char.append(enum_char(node['enumtype'])) else: self._list_char.append(enum_char('bullet'))