summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-11 00:59:10 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-11 00:59:10 +0000
commit38a74f5470864a648e13d390f6c23e0cd40a18e0 (patch)
treef5d2236c85bd6fe308814374cc0a28db38c74a80
parente7657216aaf98849c21c2f13cf63339f187f5a41 (diff)
downloadportage-38a74f5470864a648e13d390f6c23e0cd40a18e0.tar.gz
portage-38a74f5470864a648e13d390f6c23e0cd40a18e0.tar.bz2
portage-38a74f5470864a648e13d390f6c23e0cd40a18e0.zip
Just use the raise statement alone to re-raise exceptions.
svn path=/main/trunk/; revision=3835
-rw-r--r--pym/portage_checksum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage_checksum.py b/pym/portage_checksum.py
index fd659eea2..41b336066 100644
--- a/pym/portage_checksum.py
+++ b/pym/portage_checksum.py
@@ -146,7 +146,7 @@ def perform_checksum(filename, hashname="MD5", calc_prelink=0):
if e.errno == errno.ENOENT:
raise portage_exception.FileNotFound(myfilename)
else:
- raise e
+ raise
if calc_prelink and prelink_capable:
try:
os.unlink(prelink_tmpfile)
@@ -154,7 +154,7 @@ def perform_checksum(filename, hashname="MD5", calc_prelink=0):
if oe.errno == errno.ENOENT:
pass
else:
- raise oe
+ raise
portage_locks.unlockfile(mylock)
return (myhash,mysize)