summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2008-07-24 21:17:31 +0000
committerPJ Eby <distutils-sig@python.org>2008-07-24 21:17:31 +0000
commit572c98a7f3a49e71e63c0431460b17b1d99a2821 (patch)
treef4efc29f67aa57d61024341f08de4cb9d7493c26 /setuptools/command/egg_info.py
parent90ad6a20c94b4f3ef6640f615969720ae00aa262 (diff)
downloadpython-setuptools-bitbucket-572c98a7f3a49e71e63c0431460b17b1d99a2821.tar.gz
Backport egg_info SVN fix from trunk
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 290f0cdc..4e135d33 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -217,9 +217,9 @@ class egg_info(Command):
data = f.read()
f.close()
- if data.startswith('8'):
+ if data.startswith('9') or data.startswith('8'):
data = map(str.splitlines,data.split('\n\x0c\n'))
- del data[0][0] # get rid of the '8'
+ del data[0][0] # get rid of the '8' or '9'
dirurl = data[0][3]
localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]]+[0])
elif data.startswith('<?xml'):