aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-06-19 08:38:55 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-06-19 08:38:55 -0500
commit5a3dbe5d5b8cb07a292b8fee2cd83fbc1bcbd16f (patch)
tree5612177f5cc4ee87b3aae5840f75fd9a85c72278 /setuptools/command/egg_info.py
parent16b2bc31e07f8fa14d27bc504dc0bbc73da900be (diff)
downloadexternal_python_setuptools-5a3dbe5d5b8cb07a292b8fee2cd83fbc1bcbd16f.tar.gz
external_python_setuptools-5a3dbe5d5b8cb07a292b8fee2cd83fbc1bcbd16f.tar.bz2
external_python_setuptools-5a3dbe5d5b8cb07a292b8fee2cd83fbc1bcbd16f.zip
Add test capturing failure on Python 3 in egg_info.get_svn_revision (#20). egg_info.get_svn_revision is now a staticmethod.
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index cd3ea198..5863d2d4 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -210,7 +210,8 @@ class egg_info(Command):
- def get_svn_revision(self):
+ @staticmethod
+ def get_svn_revision():
revision = 0
urlre = re.compile('url="([^"]+)"')
revre = re.compile('committed-rev="(\d+)"')
@@ -234,7 +235,7 @@ class egg_info(Command):
log.warn("unrecognized .svn/entries format; skipping %s", base)
dirs[:] = []
continue
-
+
data = map(str.splitlines,data.split('\n\x0c\n'))
del data[0][0] # get rid of the '8' or '9' or '10'
dirurl = data[0][3]