mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3738: Nonsensical code in theming.py
This commit is contained in:
1
CHANGES
1
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
|
||||
--------
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user