diff options
Diffstat (limited to 'sphinx/builders/qthelp.py')
-rw-r--r-- | sphinx/builders/qthelp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/qthelp.py b/sphinx/builders/qthelp.py index 1d462841..1863fb49 100644 --- a/sphinx/builders/qthelp.py +++ b/sphinx/builders/qthelp.py @@ -123,7 +123,7 @@ class QtHelpBuilder(StandaloneHTMLBuilder): prune_toctrees=False) istoctree = lambda node: ( isinstance(node, addnodes.compact_paragraph) - and node.has_key('toctree')) + and 'toctree' in node) sections = [] for node in tocdoc.traverse(istoctree): sections.extend(self.write_toc(node)) |