Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-23 11:11:01 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-23 11:11:01 +0300
commit10585c5283af312033e1ef5a81a4b12fe4093cb2 (patch)
tree1f0bdac13ad83bcad9ad915605bada579833bf44 /sphinx/theming.py
parent3a0f7d3bad90b8cfba907357b393ed0c716b9b47 (diff)
Fix to use registry.load_extension() instead
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r--sphinx/theming.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py
index 5e023e5a1..c769cfda0 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -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