summaryrefslogtreecommitdiff
path: root/tests/path.py
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2014-04-30 21:30:46 +0900
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2014-04-30 21:30:46 +0900
commit1e5806269243d5d10bb4f1421b9b5448963e704a (patch)
tree10eb2c9270c8dc73156fafdcdb4c6d04fe441f44 /tests/path.py
parentf31d9113ffc1c58bfcc47f2a29439102b62801fc (diff)
downloadsphinx-git-1e5806269243d5d10bb4f1421b9b5448963e704a.tar.gz
remove 'six' name except importing line.
Diffstat (limited to 'tests/path.py')
-rwxr-xr-xtests/path.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/path.py b/tests/path.py
index ddfd49b79..2a4affe77 100755
--- a/tests/path.py
+++ b/tests/path.py
@@ -12,8 +12,7 @@ import sys
import shutil
from codecs import open
-import six
-from six import text_type
+from six import PY2, text_type
FILESYSTEMENCODING = sys.getfilesystemencoding() or sys.getdefaultencoding()
@@ -23,7 +22,7 @@ class path(text_type):
"""
Represents a path which behaves like a string.
"""
- if six.PY2:
+ if PY2:
def __new__(cls, s, encoding=FILESYSTEMENCODING, errors='strict'):
if isinstance(s, str):
s = s.decode(encoding, errors)