summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-08-11 00:37:37 +0000
committerPJ Eby <distutils-sig@python.org>2005-08-11 00:37:37 +0000
commit8cc0d5c27e393605ac2c729143b8730aa973a128 (patch)
tree3bb910e237635aa26f3ab61938db7e800c6e7181 /pkg_resources.py
parent647153e60591f4385d7c3c84131da2ac4c050fe0 (diff)
downloadpython-setuptools-git-8cc0d5c27e393605ac2c729143b8730aa973a128.tar.gz
Fix bugs reported by Ian Bicking, Walter Doerwald, and Vincenzo Di Massa.
--HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041189
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index e2d64e6c..48f7689b 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1794,8 +1794,8 @@ class Distribution(object):
self._version = safe_version(line.split(':',1)[1].strip())
return self._version
else:
- raise AttributeError(
- "Missing 'Version:' header in PKG-INFO", self
+ raise ValueError(
+ "Missing 'Version:' header and/or PKG-INFO file", self
)
version = property(version)