diff options
Diffstat (limited to 'parsers/rst/directives/parts.py')
-rw-r--r-- | parsers/rst/directives/parts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/rst/directives/parts.py b/parsers/rst/directives/parts.py index da1586275..6ef8c905c 100644 --- a/parsers/rst/directives/parts.py +++ b/parsers/rst/directives/parts.py @@ -57,13 +57,13 @@ class Contents(Directive): title = nodes.title(title_text, '', *text_nodes) else: messages = [] - if self.options.has_key('local'): + if 'local' in self.options: title = None else: title = nodes.title('', language.labels['contents']) topic = nodes.topic(classes=['contents']) topic['classes'] += self.options.get('class', []) - if self.options.has_key('local'): + if 'local' in self.options: topic['classes'].append('local') if title: name = title.astext() |