summaryrefslogtreecommitdiff
path: root/lib/Crypto/Util
diff options
context:
space:
mode:
authorLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2011-02-07 23:18:12 +0100
committerLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2011-02-07 23:18:12 +0100
commitdd3f0007c546ff3f9258719226cb065a30155b2c (patch)
tree0fe773bd8495ccd3bbbad9202a23f10882adab3f /lib/Crypto/Util
parent96202299179059138bb4c81873a8e8c61bb4ee3c (diff)
downloadpycrypto-dd3f0007c546ff3f9258719226cb065a30155b2c.tar.gz
Simplify wrapper, as digest_size is known in advance each time.
Diffstat (limited to 'lib/Crypto/Util')
-rw-r--r--lib/Crypto/Util/wrapper.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Crypto/Util/wrapper.py b/lib/Crypto/Util/wrapper.py
index 9ef8a4e..479ae26 100644
--- a/lib/Crypto/Util/wrapper.py
+++ b/lib/Crypto/Util/wrapper.py
@@ -40,5 +40,7 @@ class Wrapper:
try:
return getattr(getattr(self,'_wrapped'),name)
except AttributeError:
- return getattr(self,name)
+ if hasattr(self, name):
+ return getattr(self,name)
+ raise