diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-09 15:19:34 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-09 15:19:34 -0400 |
commit | 61aacdd173df9aaf20698769b1715bfcc6b5e416 (patch) | |
tree | 42719a7c863d3b209e3a61da9938947f6351cbfe /setuptools/command/sdist.py | |
parent | a0645ece948f89821606db290c511cc391804472 (diff) | |
download | external_python_setuptools-61aacdd173df9aaf20698769b1715bfcc6b5e416.tar.gz external_python_setuptools-61aacdd173df9aaf20698769b1715bfcc6b5e416.tar.bz2 external_python_setuptools-61aacdd173df9aaf20698769b1715bfcc6b5e416.zip |
Reorganize imports
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-x | setuptools/command/sdist.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index 39cd6043..a7ce7ac0 100755 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -1,9 +1,12 @@ +import os +import re +import sys +from glob import glob + +import pkg_resources from distutils.command.sdist import sdist as _sdist from distutils.util import convert_path from distutils import log -from glob import glob -import os, re, sys, pkg_resources -from glob import glob READMES = ('README', 'README.rst', 'README.txt') @@ -98,13 +101,13 @@ def entries_finder(dirname, filename): except: pass if svnver<8: log.warn("unrecognized .svn/entries format in %s", os.path.abspath(dirname)) - return + return for record in map(str.splitlines, data.split('\n\x0c\n')[1:]): # subversion 1.6/1.5/1.4 if not record or len(record)>=6 and record[5]=="delete": continue # skip deleted yield joinpath(dirname, record[0]) - + finders = [ (convert_path('CVS/Entries'), |