summaryrefslogtreecommitdiff
path: root/sphinx/writers/html5.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/writers/html5.py')
-rw-r--r--sphinx/writers/html5.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py
index 4a80c0cbb..70154923e 100644
--- a/sphinx/writers/html5.py
+++ b/sphinx/writers/html5.py
@@ -16,7 +16,6 @@ import warnings
from docutils import nodes
from docutils.writers.html5_polyglot import HTMLTranslator as BaseTranslator
-from six import string_types
from sphinx import addnodes
from sphinx.deprecation import RemovedInSphinx30Warning
@@ -51,7 +50,7 @@ class HTML5Translator(BaseTranslator):
self.protect_literal_text = 0
self.permalink_text = builder.config.html_add_permalinks
# support backwards-compatible setting to a bool
- if not isinstance(self.permalink_text, string_types):
+ if not isinstance(self.permalink_text, str):
self.permalink_text = self.permalink_text and u'\u00B6' or ''
self.permalink_text = self.encode(self.permalink_text)
self.secnumber_suffix = builder.config.html_secnumber_suffix