mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-26 07:00:14 -05:00
Remove unused codes
This commit is contained in:
1 parent
c5e55c56c0
commit
bda95d967e
1 file changed
+1
-9
+1
-9
@@ -15,14 +15,10 @@ import zipfile
|
||||
import tempfile
|
||||
from os import path
|
||||
|
||||
import pkg_resources
|
||||
from six import string_types, iteritems
|
||||
from six.moves import configparser
|
||||
|
||||
try:
|
||||
import pkg_resources
|
||||
except ImportError:
|
||||
pkg_resources = False
|
||||
|
||||
from sphinx import package_dir
|
||||
from sphinx.errors import ThemeError
|
||||
from sphinx.util import logging
|
||||
@@ -230,10 +226,6 @@ def load_theme_plugins():
|
||||
"""load plugins by using``sphinx_themes`` section in setuptools entry_points.
|
||||
This API will return list of directory that contain some theme directory.
|
||||
"""
|
||||
|
||||
if not pkg_resources:
|
||||
return []
|
||||
|
||||
theme_paths = [] # type: List[unicode]
|
||||
|
||||
for plugin in pkg_resources.iter_entry_points('sphinx_themes'):
|
||||
|
||||
Reference in new issue
Block a user