]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
zetuptoolz: print out more context in case of parse_requirements error
authorZooko <zookog@gmail.com>
Tue, 24 Feb 2015 18:11:30 +0000 (18:11 +0000)
committerZooko <zookog@gmail.com>
Tue, 24 Feb 2015 18:11:30 +0000 (18:11 +0000)
setuptools-0.6c16dev5.egg/pkg_resources.py

index 36ec57adac23402cbd995693ff65dfeea283dbfd..a94d89f8472d07ad24a25c2c39238e88fd5942f4 100644 (file)
@@ -2460,7 +2460,7 @@ def parse_requirements(strs):
     for line in lines:
         match = DISTRO(line)
         if not match:
-            raise ValueError("Missing distribution spec", line)
+            raise ValueError("Missing distribution spec", line, strs)
         project_name = match.group(1)
         p = match.end()
         extras = []