summaryrefslogtreecommitdiff
path: root/sphinx/util/pycompat.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-15 20:13:28 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-12-18 16:23:10 -0800
commit6978918ffc14b0b096285adfa0c90f95de281efa (patch)
treea7ba01358ee56c41853c488dc5808818f08e79c6 /sphinx/util/pycompat.py
parent4405366e223246045fb2ca465a8a3ebac1feb0e8 (diff)
downloadsphinx-git-6978918ffc14b0b096285adfa0c90f95de281efa.tar.gz
Replace use of six.text_type with str
This removes the last use of the six package allowing Sphinx to remove it as a dependency.
Diffstat (limited to 'sphinx/util/pycompat.py')
-rw-r--r--sphinx/util/pycompat.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py
index 0256ce0c2..df310368e 100644
--- a/sphinx/util/pycompat.py
+++ b/sphinx/util/pycompat.py
@@ -14,8 +14,6 @@ from html import escape as htmlescape # NOQA
from io import TextIOWrapper # NOQA
from textwrap import indent # NOQA
-from six import text_type
-
from sphinx.deprecation import RemovedInSphinx40Warning
from sphinx.locale import __
from sphinx.util import logging
@@ -64,7 +62,7 @@ def convert_with_2to3(filepath):
lineno, offset = err.context[1]
# try to match ParseError details with SyntaxError details
raise SyntaxError(err.msg, (filepath, lineno, offset, err.value))
- return text_type(tree)
+ return str(tree)
class UnicodeMixin: