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>2018-12-15 14:05:33 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 14:05:33 +0300
commitb911a39a813d8f7225ccd870e20ae88a0310ec15 (patch)
treef58995dacc695630542e648892c1595c3888f20b /sphinx/config.py
parentaaf0046f441aab454c64c792291dd87867fd0699 (diff)
refactor: Replace six.integer_types by int
Diffstat (limited to 'sphinx/config.py')
-rw-r--r--sphinx/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/config.py b/sphinx/config.py
index 017307cb3..b56df167d 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -17,7 +17,7 @@ from collections import OrderedDict
from os import path, getenv
from typing import Any, NamedTuple, Union
-from six import text_type, integer_types
+from six import text_type
from sphinx.deprecation import RemovedInSphinx30Warning, RemovedInSphinx40Warning
from sphinx.errors import ConfigError, ExtensionError
@@ -224,7 +224,7 @@ class Config:
(name, name + '.key=value'))
elif isinstance(defvalue, list):
return value.split(',')
- elif isinstance(defvalue, integer_types):
+ elif isinstance(defvalue, int):
try:
return int(value)
except ValueError: