From bda95d967edad8547e8429973be00d859f566023 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 16 Apr 2017 17:30:19 +0900 Subject: [PATCH] Remove unused codes --- sphinx/theming.py | 10 +--------- 1 file changed, 1 insertion(+), 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'):