summaryrefslogtreecommitdiffstats
path: root/sphinx/theming.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r--sphinx/theming.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py
index 097efa4..2957178 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -130,7 +130,7 @@ class Theme:
'are not supported, returning the default value instead '
'(tried to get a value from %r)'
)
- logger.info(msg % section)
+ logger.info(msg, section)
value = default
if value is _NO_DEFAULT:
msg = __('setting %s.%s occurs in none of the searched theme configs') % (
@@ -148,7 +148,7 @@ class Theme:
options = self._options.copy()
for option, value in overrides.items():
if option not in options:
- logger.warning(__('unsupported theme option %r given') % option)
+ logger.warning(__('unsupported theme option %r given'), option)
else:
options[option] = value
@@ -179,7 +179,7 @@ class HTMLThemeFactory:
for name, theme in themes.items():
self._themes[name] = theme
- def _load_additional_themes(self, theme_paths: str) -> None:
+ def _load_additional_themes(self, theme_paths: list[str]) -> None:
"""Load additional themes placed at specified directories."""
for theme_path in theme_paths:
abs_theme_path = path.abspath(path.join(self._app.confdir, theme_path))