summaryrefslogtreecommitdiff
path: root/sphinx/theming.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-05-11 22:45:24 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-05-11 22:45:24 +0900
commitbac9fcbb561d0346dc1c08eda9a2978816ce46b0 (patch)
treebb0725bf9db6ed7a6ae1a14a8e531189a093d79c /sphinx/theming.py
parentacb9ab6eb96067ace669a5941734e0e58423eb0f (diff)
downloadsphinx-git-bac9fcbb561d0346dc1c08eda9a2978816ce46b0.tar.gz
Fix #3738: Nonsensical code in theming.py
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r--sphinx/theming.py2
1 files changed, 1 insertions, 1 deletions
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: