diff options
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/ssl_support.py | 5 | ||||
| -rw-r--r-- | setuptools/tests/test_sdist.py | 3 |
2 files changed, 1 insertions, 7 deletions
diff --git a/setuptools/ssl_support.py b/setuptools/ssl_support.py index e749b312..2aec655a 100644 --- a/setuptools/ssl_support.py +++ b/setuptools/ssl_support.py @@ -4,11 +4,6 @@ from pkg_resources import ResolutionError, ExtractionError from setuptools.compat import urllib2 try: - import urllib2 -except ImportError: - import urllib.request as urllib2 - -try: import ssl except ImportError: ssl = None 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, '/') |
