def write_doc_serialized(self, docname, doctree): """Handle parts of write_doc that must be called in the main process if parallel build is active. """ pass