summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/pypi/dist.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-06-04 20:33:16 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-06-04 20:33:16 (GMT)
commit2ef747cb778a45ec7eb96f5ba5f725bbf53e970c (patch)
treeb0694504eee386e465bf832cb64fc13755a853d5 /Lib/packaging/pypi/dist.py
parent35a4d01a927a9ad0a774eec6a9ee1b728279c5b6 (diff)
downloadcpython-2ef747cb778a45ec7eb96f5ba5f725bbf53e970c.zip
cpython-2ef747cb778a45ec7eb96f5ba5f725bbf53e970c.tar.gz
cpython-2ef747cb778a45ec7eb96f5ba5f725bbf53e970c.tar.bz2
Cleanup in packaging: don’t unnecessarily instantiate exceptions
Diffstat (limited to 'Lib/packaging/pypi/dist.py')
-rw-r--r--Lib/packaging/pypi/dist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/pypi/dist.py b/Lib/packaging/pypi/dist.py
index 16510df..db04cda 100644
--- a/Lib/packaging/pypi/dist.py
+++ b/Lib/packaging/pypi/dist.py
@@ -135,7 +135,7 @@ class ReleaseInfo(IndexReference):
not return one existing distribution.
"""
if len(self.dists) == 0:
- raise LookupError()
+ raise LookupError
if dist_type:
return self[dist_type]
if prefer_source: