Skip to content

Commit 80ff2ad

Browse files
committed
Update pydoc topics and adapt Topics builder to Sphinx 1.0.
1 parent 604ef37 commit 80ff2ad

2 files changed

Lines changed: 35 additions & 36 deletions

File tree

Doc/tools/sphinxext/pyspecific.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ def write(self, *ignored):
145145
for label in self.status_iterator(pydoc_topic_labels,
146146
'building topics... ',
147147
length=len(pydoc_topic_labels)):
148-
if label not in self.env.labels:
148+
if label not in self.env.domaindata['std']['labels']:
149149
self.warn('label %r not in documentation' % label)
150150
continue
151-
docname, labelid, sectname = self.env.labels[label]
151+
docname, labelid, sectname = self.env.domaindata['std']['labels'][label]
152152
doctree = self.env.get_and_resolve_doctree(docname, self)
153153
document = new_document('<section node>')
154154
document.append(doctree.ids[labelid])

0 commit comments

Comments
 (0)