Commit Graph

3 Commits

Author SHA1 Message Date
Zooko O'Whielacronx
06a8b1ea84 pkg_resources: better error message on bad spec
Include the text of the offending distribution spec when it is ill-formed.

I got an error message from pkg_resources.py saying that a distribution spec
was ill-formed, because it ended with an '=' and nothing came after the '='.
However, the error message and stack trace didn't tell which distribution spec
it was.

With this patch, it includes the distribution spec itself in the error message.

There is no unit test of this patch, but I did test it manually by inserting a
"raise ValueError('WHATEVER')" into the code and re-running it and observing
that the new output correctly included the distribution
2012-11-22 17:09:41 +00:00
david-sarah
c5b462bc08 Bundled zetuptoolz: bump version in EGG-INFO directory. 2010-11-28 10:42:42 -08:00
david-sarah
a1bf210bf3 Bundled zetuptoolz: bump version to 0.6c16dev3. refs #1242 2010-11-28 10:31:02 -08:00