summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-29 12:24:34 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-29 12:24:34 +0900
commit5330172d54b0dd32629eaa033450d5a6658ac8c1 (patch)
tree27968a6ee3903455acb664561a7b6384e659788d
parent942dbc6be6db6fed580b16e3295d1b408b29cf94 (diff)
downloadsphinx-git-5330172d54b0dd32629eaa033450d5a6658ac8c1.tar.gz
Fix #7223: Sphinx builds has been slower since 2.4.0
-rw-r--r--CHANGES1
-rw-r--r--sphinx/util/docutils.py8
2 files changed, 5 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index ae8a74f36..f2caf578d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -17,6 +17,7 @@ Bugs fixed
----------
* #7197: LaTeX: platex cause error to build image directive with target url
+* #7223: Sphinx builds has been slower since 2.4.0
Testing
--------
diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py
index 23f2c888b..3fbd8a420 100644
--- a/sphinx/util/docutils.py
+++ b/sphinx/util/docutils.py
@@ -479,8 +479,8 @@ class SphinxTranslator(nodes.NodeVisitor):
for node_class in node.__class__.__mro__:
method = getattr(self, 'visit_%s' % (node_class.__name__), None)
if method:
- logger.debug('SphinxTranslator.dispatch_visit calling %s for %s' %
- (method.__name__, node))
+ logger.debug('SphinxTranslator.dispatch_visit calling %s for %s',
+ method.__name__, node)
return method(node)
else:
super().dispatch_visit(node)
@@ -497,8 +497,8 @@ class SphinxTranslator(nodes.NodeVisitor):
for node_class in node.__class__.__mro__:
method = getattr(self, 'depart_%s' % (node_class.__name__), None)
if method:
- logger.debug('SphinxTranslator.dispatch_departure calling %s for %s' %
- (method.__name__, node))
+ logger.debug('SphinxTranslator.dispatch_departure calling %s for %s',
+ method.__name__, node)
return method(node)
else:
super().dispatch_departure(node)