mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix a has_key() usage
This commit is contained in:
parent
9a4369a413
commit
957973d651
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user