Commit 12860312 authored by PJ Eby's avatar PJ Eby

Should've used distutils.log.warn instead of warnings.warn

(backport from trunk)

--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052009
parent e420a145
......@@ -226,8 +226,7 @@ class egg_info(Command):
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 @@ class egg_info(Command):
def find_sources(self):
"""Generate SOURCES.txt manifest file"""
manifest_filename = os.path.join(self.egg_info,"SOURCES.txt")
......
......@@ -95,8 +95,7 @@ def entries_finder(dirname, filename):
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 @@ finders = [
class sdist(_sdist):
"""Smart sdist that finds anything supported by revision control"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment