diff options
author | Legrandin <gooksankoo@hoiptorrow.mailexpire.com> | 2011-02-07 23:18:12 +0100 |
---|---|---|
committer | Legrandin <gooksankoo@hoiptorrow.mailexpire.com> | 2011-02-07 23:18:12 +0100 |
commit | dd3f0007c546ff3f9258719226cb065a30155b2c (patch) | |
tree | 0fe773bd8495ccd3bbbad9202a23f10882adab3f /lib/Crypto/Util | |
parent | 96202299179059138bb4c81873a8e8c61bb4ee3c (diff) | |
download | pycrypto-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.py | 4 |
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 |