summaryrefslogtreecommitdiff
path: root/sphinx/testing/path.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/testing/path.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/testing/path.py')
-rw-r--r--sphinx/testing/path.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/sphinx/testing/path.py b/sphinx/testing/path.py
index d80bb0786..9477391b4 100644
--- a/sphinx/testing/path.py
+++ b/sphinx/testing/path.py
@@ -9,8 +9,6 @@ import os
import shutil
import sys
-from six import text_type
-
if False:
# For type annotation
import builtins # NOQA
@@ -20,7 +18,7 @@ if False:
FILESYSTEMENCODING = sys.getfilesystemencoding() or sys.getdefaultencoding()
-class path(text_type):
+class path(str):
"""
Represents a path which behaves like a string.
"""
@@ -222,4 +220,4 @@ class path(text_type):
def __repr__(self):
# type: () -> str
- return '%s(%s)' % (self.__class__.__name__, text_type.__repr__(self))
+ return '%s(%s)' % (self.__class__.__name__, super().__repr__())