diff options
author | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:18:19 +0000 |
---|---|---|
committer | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:18:19 +0000 |
commit | 909813ea5e93a2ce8809737f60791560b33c1e85 (patch) | |
tree | 8d6fc47c20f6d73499d1b8f1d0d7e4fd2deefdfc /parsers/rst/directives/admonitions.py | |
parent | 537774fff163c1bbb528f4ac3c92ce42feacb33d (diff) | |
download | docutils-abolish-userstring.tar.gz |
Replace all has_key with the in operator.abolish-userstring
git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/abolish-userstring@5607 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'parsers/rst/directives/admonitions.py')
-rw-r--r-- | parsers/rst/directives/admonitions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parsers/rst/directives/admonitions.py b/parsers/rst/directives/admonitions.py index bed3381b8..870b6659e 100644 --- a/parsers/rst/directives/admonitions.py +++ b/parsers/rst/directives/admonitions.py @@ -35,7 +35,7 @@ class BaseAdmonition(Directive): self.lineno) admonition_node += nodes.title(title_text, '', *textnodes) admonition_node += messages - if self.options.has_key('class'): + if 'class' in self.options: classes = self.options['class'] else: classes = ['admonition-' + nodes.make_id(title_text)] |