From 6978918ffc14b0b096285adfa0c90f95de281efa Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 15 Dec 2018 20:13:28 -0800 Subject: 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. --- sphinx/transforms/post_transforms/code.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sphinx/transforms/post_transforms/code.py') diff --git a/sphinx/transforms/post_transforms/code.py b/sphinx/transforms/post_transforms/code.py index a732842c2..610437ac6 100644 --- a/sphinx/transforms/post_transforms/code.py +++ b/sphinx/transforms/post_transforms/code.py @@ -13,7 +13,6 @@ from typing import NamedTuple from docutils import nodes from pygments.lexers import PythonConsoleLexer, guess_lexer -from six import text_type from sphinx import addnodes from sphinx.ext import doctest @@ -25,7 +24,7 @@ if False: from sphinx.application import Sphinx # NOQA -HighlightSetting = NamedTuple('HighlightSetting', [('language', text_type), +HighlightSetting = NamedTuple('HighlightSetting', [('language', str), ('lineno_threshold', int)]) -- cgit v1.2.1