diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-21 06:50:08 +0300 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-21 17:47:15 +0300 |
commit | b8631079bfac00c7823b25990105b85a180208b4 (patch) | |
tree | c579987fbf4d5cee55ba32b9f4166af0365486e1 /sphinx/jinja2glue.py | |
parent | c4df9b5de2f57387a23ec5b28f74b5e760040dd6 (diff) |
Replace six.string_types with native str
Diffstat (limited to 'sphinx/jinja2glue.py')
-rw-r--r-- | sphinx/jinja2glue.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py index c3ed86e09..739437a16 100644 --- a/sphinx/jinja2glue.py +++ b/sphinx/jinja2glue.py @@ -17,7 +17,6 @@ from jinja2 import FileSystemLoader, BaseLoader, TemplateNotFound, \ contextfunction from jinja2.sandbox import SandboxedEnvironment from jinja2.utils import open_if_exists -from six import string_types from sphinx.application import TemplateBridge from sphinx.util import logging @@ -33,7 +32,7 @@ if False: def _tobool(val): # type: (unicode) -> bool - if isinstance(val, string_types): + if isinstance(val, str): return val.lower() in ('true', '1', 'yes', 'on') return bool(val) |