mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
refactor: Do not evaluate debug message on calling
This commit is contained in:
parent
5330172d54
commit
f965829cd0
@ -347,7 +347,7 @@ class SphinxComponentRegistry:
|
||||
|
||||
def add_translator(self, name: str, translator: "Type[nodes.NodeVisitor]",
|
||||
override: bool = False) -> None:
|
||||
logger.debug('[app] Change of translator for the %s builder.' % name)
|
||||
logger.debug('[app] Change of translator for the %s builder.', name)
|
||||
if name in self.translators and not override:
|
||||
raise ExtensionError(__('Translator for %r already exists') % name)
|
||||
self.translators[name] = translator
|
||||
|
Loading…
Reference in New Issue
Block a user