Commit d55671ad authored by Brad King's avatar Brad King
Browse files

Utilities/Sphinx: Fix cmake domain document removal with python3

In the domain clear_doc method, avoid removing entries from a dictionary
while iterating over it.  Instead accumulate a set of entries to remove
at the end.
parent 69069cfb
......@@ -290,9 +290,12 @@ class CMakeDomain(Domain):
def clear_doc(self, docname):
to_clear = set()
for fullname, (fn, _) in['objects'].items():
if fn == docname:
for fullname in to_clear:
def resolve_xref(self, env, fromdocname, builder,
typ, target, node, contnode):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment