diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-20 19:50:08 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-21 06:47:15 -0800 |
commit | b8631079bfac00c7823b25990105b85a180208b4 (patch) | |
tree | c579987fbf4d5cee55ba32b9f4166af0365486e1 /sphinx/setup_command.py | |
parent | c4df9b5de2f57387a23ec5b28f74b5e760040dd6 (diff) | |
download | sphinx-git-b8631079bfac00c7823b25990105b85a180208b4.tar.gz |
Replace six.string_types with native str
Diffstat (limited to 'sphinx/setup_command.py')
-rw-r--r-- | sphinx/setup_command.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py index 733bc4e34..072af6c91 100644 --- a/sphinx/setup_command.py +++ b/sphinx/setup_command.py @@ -18,7 +18,7 @@ import sys from distutils.cmd import Command from distutils.errors import DistutilsOptionError, DistutilsExecError -from six import StringIO, string_types +from six import StringIO from sphinx.application import Sphinx from sphinx.cmd.build import handle_exception @@ -129,7 +129,7 @@ class BuildDoc(Command): if val is None: setattr(self, option, default) return default - elif not isinstance(val, string_types): + elif not isinstance(val, str): raise DistutilsOptionError("'%s' must be a %s (got `%s`)" % (option, what, val)) return val |