diff options
Diffstat (limited to 'tests/path.py')
-rwxr-xr-x | tests/path.py | 5 |
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) |