summaryrefslogtreecommitdiff
path: root/sphinx/testing/path.py
diff options
context:
space:
mode:
authorcocodrips <cocodrips@gmail.com>2018-12-26 11:31:44 +0900
committercocodrips <cocodrips@gmail.com>2018-12-26 11:31:50 +0900
commit827059be93426b83afd2fc7d823c48681e5f913a (patch)
treeec1893e5cf77acbb79d736ea3f841dc864781740 /sphinx/testing/path.py
parent448181d9f97611d352c0c8ec21e55e8242db9d60 (diff)
parent99a7dca2160996e3189dfcc2176bbbbac531d5f3 (diff)
downloadsphinx-git-827059be93426b83afd2fc7d823c48681e5f913a.tar.gz
Merge remote-tracking branch 'upstream/master' into 5842-apidoc-extensions
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__())