aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/sdist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-09-09 15:21:41 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-09-09 15:21:41 -0400
commit2b6a00de2632bd044a260c86aec9e29083b2adf1 (patch)
tree859629c9c4c1daa788659e5ec20033a200db4886 /setuptools/command/sdist.py
parent61aacdd173df9aaf20698769b1715bfcc6b5e416 (diff)
downloadexternal_python_setuptools-2b6a00de2632bd044a260c86aec9e29083b2adf1.tar.gz
external_python_setuptools-2b6a00de2632bd044a260c86aec9e29083b2adf1.tar.bz2
external_python_setuptools-2b6a00de2632bd044a260c86aec9e29083b2adf1.zip
Remove excess whitespace. Delint one if statement.
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-xsetuptools/command/sdist.py37
1 files changed, 6 insertions, 31 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index a7ce7ac0..6d63e819 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -37,14 +37,6 @@ def joinpath(prefix,suffix):
return suffix
return os.path.join(prefix,suffix)
-
-
-
-
-
-
-
-
def walk_revctrl(dirname=''):
"""Find all files under revision control"""
for ep in pkg_resources.iter_entry_points('setuptools.file_finders'):
@@ -118,16 +110,6 @@ finders = [
]
-
-
-
-
-
-
-
-
-
-
class sdist(_sdist):
"""Smart sdist that finds anything supported by revision control"""
@@ -182,11 +164,12 @@ class sdist(_sdist):
# Beginning with Python 2.7.2, 3.1.4, and 3.2.1, this leaky file handle
# has been fixed, so only override the method if we're using an earlier
# Python.
- if (
- sys.version_info < (2,7,2)
- or (3,0) <= sys.version_info < (3,1,4)
- or (3,2) <= sys.version_info < (3,2,1)
- ):
+ has_leaky_handle = (
+ sys.version_info < (2,7,2)
+ or (3,0) <= sys.version_info < (3,1,4)
+ or (3,2) <= sys.version_info < (3,2,1)
+ )
+ if has_leaky_handle:
read_template = __read_template_hack
def add_defaults(self):
@@ -251,7 +234,6 @@ class sdist(_sdist):
"standard file not found: should have one of " +', '.join(READMES)
)
-
def make_release_tree(self, base_dir, files):
_sdist.make_release_tree(self, base_dir, files)
@@ -298,10 +280,3 @@ class sdist(_sdist):
continue
self.filelist.append(line)
manifest.close()
-
-
-
-
-
-
-#