diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-06-19 12:32:17 +0100 |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-06-19 12:32:17 +0100 |
| commit | 9ea9ca10b152b97e6eeb57da26aed8f88cc67136 (patch) | |
| tree | 5f453d3ba6a364574b8bfd3ad835952fa2b6a573 /setuptools/tests | |
| parent | f91bf3924a2f4e3d4c7f075b792002dae97d46b4 (diff) | |
| download | python-setuptools-git-9ea9ca10b152b97e6eeb57da26aed8f88cc67136.tar.gz | |
Tidied up imports.
--HG--
branch : single-codebase
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_sdist.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index b8f89e06..438f7ced 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -9,7 +9,6 @@ import tempfile import unittest import unicodedata - from setuptools.compat import StringIO, unicode from setuptools.command.sdist import sdist from setuptools.command.egg_info import manifest_maker @@ -56,7 +55,7 @@ def b(s, encoding='utf-8'): # Convert to POSIX path def posix(path): - if sys.version_info >= (3,) and not isinstance(path, unicode): + if sys.version_info >= (3,) and not isinstance(path, str): return path.replace(os.sep.encode('ascii'), b('/')) else: return path.replace(os.sep, '/') |
