diff options
author | Georg Brandl <georg@python.org> | 2014-09-22 14:51:47 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-22 14:51:47 +0200 |
commit | 31452fc64d550f526d3a6c4dfbb1121873896503 (patch) | |
tree | 1b259d36d3f105e8b0971acb1f838f89110595e1 /sphinx/domains/python.py | |
parent | 905cbf853d5fe8fa911ec8fc81dc31134f4e5ba2 (diff) | |
download | sphinx-git-31452fc64d550f526d3a6c4dfbb1121873896503.tar.gz |
[WIP] parallel read
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r-- | sphinx/domains/python.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 3745aab39..4e08eba9b 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -627,6 +627,15 @@ class PythonDomain(Domain): if fn == docname: del self.data['modules'][modname] + def merge_domaindata(self, docnames, otherdata): + # XXX check duplicates? + for fullname, (fn, objtype) in otherdata['objects'].items(): + if fn in docnames: + self.data['objects'][fullname] = (fn, objtype) + for modname, data in otherdata['modules'].items(): + if data[0] in docnames: + self.data['modules'][modname] = data + def find_obj(self, env, modname, classname, name, type, searchmode=0): """Find a Python object for "name", perhaps using the given module and/or classname. Returns a list of (name, object entry) tuples. |