summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rw-r--r--sphinx/theming.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 408f11641..fbfcfd2ab 100644
--- a/CHANGES
+++ b/CHANGES
@@ -27,6 +27,7 @@ Bugs fixed
longtable class or not (refs #3686)
* #3725: Todo looks different from note in LaTeX output
* #3479: stub-columns have no effect in LaTeX output
+* #3738: Nonsensical code in theming.py
Testing
--------
diff --git a/sphinx/theming.py b/sphinx/theming.py
index c769cfda0..7695323e6 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -233,7 +233,7 @@ class HTMLThemeFactory(object):
target = entry_point.load()
if callable(target):
themedir = target()
- if not isinstance(path, string_types):
+ if not isinstance(themedir, string_types):
logger.warning(_('Theme extension %r does not response correctly.') %
entry_point.module_name)
else: