[Python-checkins] r52008 - sandbox/trunk/setuptools/setuptools/command/egg_info.py sandbox/trunk/setuptools/setuptools/command/sdist.py
phillip.eby
python-checkins at python.org
Tue Sep 26 22:15:06 CEST 2006
Author: phillip.eby
Date: Tue Sep 26 22:15:05 2006
New Revision: 52008
Modified:
sandbox/trunk/setuptools/setuptools/command/egg_info.py
sandbox/trunk/setuptools/setuptools/command/sdist.py
Log:
Should've used distutils.log.warn instead of warnings.warn
Modified: sandbox/trunk/setuptools/setuptools/command/egg_info.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/egg_info.py (original)
+++ sandbox/trunk/setuptools/setuptools/command/egg_info.py Tue Sep 26 22:15:05 2006
@@ -226,8 +226,7 @@
dirurl = urlre.search(data).group(1) # get repository URL
localrev = max([int(m.group(1)) for m in revre.finditer(data)])
else:
- from warnings import warn
- warn("unrecognized .svn/entries format; skipping "+base)
+ log.warn("unrecognized .svn/entries format; skipping %s", base)
dirs[:] = []
continue
if base==os.curdir:
@@ -244,6 +243,7 @@
+
def find_sources(self):
"""Generate SOURCES.txt manifest file"""
manifest_filename = os.path.join(self.egg_info,"SOURCES.txt")
Modified: sandbox/trunk/setuptools/setuptools/command/sdist.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/sdist.py (original)
+++ sandbox/trunk/setuptools/setuptools/command/sdist.py Tue Sep 26 22:15:05 2006
@@ -95,8 +95,7 @@
for match in entries_pattern.finditer(data):
yield joinpath(dirname,unescape(match.group(1)))
else:
- from warnings import warn
- warn("unrecognized .svn/entries format in "+dirname)
+ log.warn("unrecognized .svn/entries format in %s", dirname)
finders = [
@@ -121,6 +120,7 @@
+
class sdist(_sdist):
"""Smart sdist that finds anything supported by revision control"""
More information about the Python-checkins
mailing list