diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-16 11:30:19 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-16 11:30:19 +0300 |
commit | bda95d967edad8547e8429973be00d859f566023 (patch) | |
tree | ec88d9a0f0d972bb767b969e3a0cc43bc7469180 /sphinx/theming.py | |
parent | c5e55c56c02cc48f1a4b401846e95d2b1c6b8347 (diff) |
Remove unused codes
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r-- | sphinx/theming.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py index 162b3206c..f10d29010 100644 --- a/sphinx/theming.py +++ b/sphinx/theming.py @@ -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'): |