From 7b4572a11608f71943f73698749ad5ed7037d91f Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Wed, 31 Jan 2018 01:34:12 +0900 Subject: [PATCH] math: ValueError is raised on parallel build. (refs: #4526) --- CHANGES | 1 + sphinx/ext/mathbase.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index d032844cf..306db083b 100644 --- a/CHANGES +++ b/CHANGES @@ -28,6 +28,7 @@ Bugs fixed * #4514: graphviz: workaround for wrong map ID which graphviz generates * #4525: autosectionlabel does not support parallel build * #3953: Do not raise warning when there is a working intersphinx inventory +* #4487: math: ValueError is raised on parallel build. Thanks to jschueller. Testing -------- diff --git a/sphinx/ext/mathbase.py b/sphinx/ext/mathbase.py index 8372c3ddd..514fcdaf3 100644 --- a/sphinx/ext/mathbase.py +++ b/sphinx/ext/mathbase.py @@ -68,7 +68,7 @@ class MathDomain(Domain): # type: (Iterable[unicode], Dict) -> None for labelid, (doc, eqno) in otherdata['objects'].items(): if doc in docnames: - self.data['objects'][labelid] = doc + self.data['objects'][labelid] = (doc, eqno) def resolve_xref(self, env, fromdocname, builder, typ, target, node, contnode): # type: (BuildEnvironment, unicode, Builder, unicode, unicode, nodes.Node, nodes.Node) -> nodes.Node # NOQA