mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-25 06:38:09 -05:00
Fix to use registry.load_extension() instead
This commit is contained in:
1 parent
3a0f7d3bad
commit
10585c5283
1 file changed
+1
-2
+1
-2
@@ -23,7 +23,6 @@ from six.moves import configparser
|
||||
from sphinx import package_dir
|
||||
from sphinx.deprecation import RemovedInSphinx20Warning
|
||||
from sphinx.errors import ThemeError
|
||||
from sphinx.extension import load_extension
|
||||
from sphinx.locale import _
|
||||
from sphinx.util import logging
|
||||
from sphinx.util.osutil import ensuredir
|
||||
@@ -224,7 +223,7 @@ class HTMLThemeFactory(object):
|
||||
entry_points = pkg_resources.iter_entry_points('sphinx.html_themes', name)
|
||||
try:
|
||||
entry_point = next(entry_points)
|
||||
load_extension(self.app, entry_point.module_name)
|
||||
self.app.registry.load_extension(self.app, entry_point.module_name)
|
||||
return
|
||||
except StopIteration:
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user