Fix #3738: Nonsensical code in theming.py

This commit is contained in:
Takeshi KOMIYA
2017-05-11 22:45:24 +09:00
parent acb9ab6eb9
commit bac9fcbb56
2 changed files with 2 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ Bugs fixed
longtable class or not (refs #3686) longtable class or not (refs #3686)
* #3725: Todo looks different from note in LaTeX output * #3725: Todo looks different from note in LaTeX output
* #3479: stub-columns have no effect in LaTeX output * #3479: stub-columns have no effect in LaTeX output
* #3738: Nonsensical code in theming.py
Testing Testing
-------- --------

View File

@@ -233,7 +233,7 @@ class HTMLThemeFactory(object):
target = entry_point.load() target = entry_point.load()
if callable(target): if callable(target):
themedir = target() themedir = target()
if not isinstance(path, string_types): if not isinstance(themedir, string_types):
logger.warning(_('Theme extension %r does not response correctly.') % logger.warning(_('Theme extension %r does not response correctly.') %
entry_point.module_name) entry_point.module_name)
else: else: