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/util/jsonimpl.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sphinx/util/jsonimpl.py') diff --git a/sphinx/util/jsonimpl.py b/sphinx/util/jsonimpl.py index eb4117f90..8054be0d7 100644 --- a/sphinx/util/jsonimpl.py +++ b/sphinx/util/jsonimpl.py @@ -11,8 +11,6 @@ import json from collections import UserString -from six import text_type - if False: # For type annotation from typing import Any, IO # NOQA @@ -23,7 +21,7 @@ class SphinxJSONEncoder(json.JSONEncoder): def default(self, obj): # type: (Any) -> str if isinstance(obj, UserString): - return text_type(obj) + return str(obj) return super().default(obj) -- cgit v1.2.1