Merge topic 'sphinx-python3'
d55671ad
Utilities/Sphinx: Fix cmake domain document removal with python3
This commit is contained in:
commit
3c8226e590
|
@ -308,8 +308,11 @@ class CMakeDomain(Domain):
|
||||||
}
|
}
|
||||||
|
|
||||||
def clear_doc(self, docname):
|
def clear_doc(self, docname):
|
||||||
|
to_clear = set()
|
||||||
for fullname, (fn, _) in self.data['objects'].items():
|
for fullname, (fn, _) in self.data['objects'].items():
|
||||||
if fn == docname:
|
if fn == docname:
|
||||||
|
to_clear.add(fullname)
|
||||||
|
for fullname in to_clear:
|
||||||
del self.data['objects'][fullname]
|
del self.data['objects'][fullname]
|
||||||
|
|
||||||
def resolve_xref(self, env, fromdocname, builder,
|
def resolve_xref(self, env, fromdocname, builder,
|
||||||
|
|
Loading…
Reference in New Issue