summaryrefslogtreecommitdiff
path: root/parsers/rst/directives/body.py
diff options
context:
space:
mode:
Diffstat (limited to 'parsers/rst/directives/body.py')
-rw-r--r--parsers/rst/directives/body.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsers/rst/directives/body.py b/parsers/rst/directives/body.py
index 03c9c3fa6..0cc695726 100644
--- a/parsers/rst/directives/body.py
+++ b/parsers/rst/directives/body.py
@@ -39,7 +39,7 @@ class BasePseudoSection(Directive):
textnodes, messages = self.state.inline_text(title_text, self.lineno)
titles = [nodes.title(title_text, '', *textnodes)]
# Sidebar uses this code.
- if self.options.has_key('subtitle'):
+ if 'subtitle' in self.options:
textnodes, more_messages = self.state.inline_text(
self.options['subtitle'], self.lineno)
titles.append(nodes.subtitle(self.options['subtitle'], '',