aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-07-14 12:32:22 +0700
committerstepshal <nessento@openmailbox.org>2016-07-14 12:32:22 +0700
commit93612718350a0dd0bb09d21986ef9333a6f5cb1f (patch)
tree70be0e1551562cdf88bc769d95be0793523b10e7
parent8e80ee745b620086bea2111236f85fa2376d748f (diff)
downloadexternal_python_setuptools-93612718350a0dd0bb09d21986ef9333a6f5cb1f.tar.gz
external_python_setuptools-93612718350a0dd0bb09d21986ef9333a6f5cb1f.tar.bz2
external_python_setuptools-93612718350a0dd0bb09d21986ef9333a6f5cb1f.zip
Fix spacing after comment hash.
-rwxr-xr-xsetuptools/package_index.py2
-rw-r--r--setuptools/py31compat.py4
-rw-r--r--setuptools/site-patch.py4
-rw-r--r--setuptools/tests/test_dist_info.py4
4 files changed, 7 insertions, 7 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index cdedef83..4606c5ae 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -325,7 +325,7 @@ class PackageIndex(Environment):
base = f.url # handle redirects
page = f.read()
- if not isinstance(page, str): # We are in Python 3 and got bytes. We want str.
+ if not isinstance(page, str): # We are in Python 3 and got bytes. We want str.
if isinstance(f, urllib.error.HTTPError):
# Errors have no charset, assume latin1:
charset = 'latin-1'
diff --git a/setuptools/py31compat.py b/setuptools/py31compat.py
index 04a314ef..c2c4eed8 100644
--- a/setuptools/py31compat.py
+++ b/setuptools/py31compat.py
@@ -29,7 +29,7 @@ except ImportError:
"""
def __init__(self):
- self.name = None # Handle mkdtemp raising an exception
+ self.name = None # Handle mkdtemp raising an exception
self.name = tempfile.mkdtemp()
def __enter__(self):
@@ -38,7 +38,7 @@ except ImportError:
def __exit__(self, exctype, excvalue, exctrace):
try:
shutil.rmtree(self.name, True)
- except OSError: #removal errors are not the only possible
+ except OSError: # removal errors are not the only possible
pass
self.name = None
diff --git a/setuptools/site-patch.py b/setuptools/site-patch.py
index 3e89ef2f..9af7c690 100644
--- a/setuptools/site-patch.py
+++ b/setuptools/site-patch.py
@@ -23,7 +23,7 @@ def __boot():
break
else:
try:
- import imp # Avoid import loop in Python >= 3.3
+ import imp # Avoid import loop in Python >= 3.3
stream, path, descr = imp.find_module('site', [item])
except ImportError:
continue
@@ -38,7 +38,7 @@ def __boot():
else:
raise ImportError("Couldn't find the real 'site' module")
- known_paths = dict([(makepath(item)[1], 1) for item in sys.path]) # 2.2 comp
+ known_paths = dict([(makepath(item)[1], 1) for item in sys.path]) # 2.2 comp
oldpos = getattr(sys, '__egginsert', 0) # save old insertion position
sys.__egginsert = 0 # and reset the current one
diff --git a/setuptools/tests/test_dist_info.py b/setuptools/tests/test_dist_info.py
index 9f226a55..db3cb2e7 100644
--- a/setuptools/tests/test_dist_info.py
+++ b/setuptools/tests/test_dist_info.py
@@ -25,8 +25,8 @@ class TestDistInfo:
unversioned = dists['UnversionedDistribution']
versioned = dists['VersionedDistribution']
- assert versioned.version == '2.718' # from filename
- assert unversioned.version == '0.3' # from METADATA
+ assert versioned.version == '2.718' # from filename
+ assert unversioned.version == '0.3' # from METADATA
def test_conditional_dependencies(self):
specs = 'splort==4', 'quux>=1.1'