diff options
| author | Benjamin Peterson <benjamin@python.org> | 2009-01-10 12:54:03 -0600 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2009-01-10 12:54:03 -0600 |
| commit | 9f9b657b9636730f80819e24bd4e352d751ef358 (patch) | |
| tree | 16f0be34040d102a23b00233dc0bfe8bc106492c | |
| parent | 1043e41399c989f5f83fa24961c8d51d803186c1 (diff) | |
| download | sphinx-9f9b657b9636730f80819e24bd4e352d751ef358.tar.gz | |
fix a has_key() usage
| -rw-r--r-- | sphinx/util/compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/compat.py b/sphinx/util/compat.py index 4d5e1996..56ac9e80 100644 --- a/sphinx/util/compat.py +++ b/sphinx/util/compat.py @@ -27,7 +27,7 @@ def make_admonition(node_class, name, arguments, options, content, lineno, textnodes, messages = state.inline_text(title_text, lineno) admonition_node += nodes.title(title_text, '', *textnodes) admonition_node += messages - if options.has_key('class'): + if 'class' in options: classes = options['class'] else: classes = ['admonition-' + nodes.make_id(title_text)] |
