summaryrefslogtreecommitdiff
path: root/sphinx/theming.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-09-23 09:18:21 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-09-23 09:22:06 -0700
commit02d06bdaf02957bcaca2c63a8906ffef7f7e01ee (patch)
treece648c4e006a60d1104b1af5845c5628a60093ea /sphinx/theming.py
parent408219cf81c1bac0c31684ca8fe36a4cb8c88cfc (diff)
downloadsphinx-git-02d06bdaf02957bcaca2c63a8906ffef7f7e01ee.tar.gz
Remove uses of six.moves that did not cause any type errors
Removal of the remaining imports may require passing "--python-version 3.5" to the mypy command.
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r--sphinx/theming.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py
index efe9673d4..6687dd27b 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -9,6 +9,7 @@
:license: BSD, see LICENSE for details.
"""
+import configparser
import os
import shutil
import tempfile
@@ -16,7 +17,6 @@ from os import path
from zipfile import ZipFile
import pkg_resources
-from six.moves import configparser
from sphinx import package_dir
from sphinx.errors import ThemeError
@@ -72,7 +72,7 @@ class Theme:
extract_zip(theme_path, self.themedir)
self.config = configparser.RawConfigParser()
- self.config.read(path.join(self.themedir, THEMECONF)) # type: ignore
+ self.config.read(path.join(self.themedir, THEMECONF))
try:
inherit = self.config.get('theme', 'inherit')
@@ -104,7 +104,7 @@ class Theme:
base theme chain.
"""
try:
- return self.config.get(section, name) # type: ignore
+ return self.config.get(section, name)
except (configparser.NoOptionError, configparser.NoSectionError):
if self.base:
return self.base.get_config(section, name, default)