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)
|
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
|
||||||
--------
|
--------
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user