summaryrefslogtreecommitdiffstats
path: root/Lib/hmac.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-19 19:07:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-19 19:07:38 (GMT)
commit4348a25665b2f09f76a605bab507b4edacc4dd24 (patch)
tree33e20e9213c4309c9d1e1f6baa3c35a1d553d5fd /Lib/hmac.py
parent5bc9f4c09c99eb701dbee83fb9e26eed558e474f (diff)
downloadcpython-4348a25665b2f09f76a605bab507b4edacc4dd24.zip
cpython-4348a25665b2f09f76a605bab507b4edacc4dd24.tar.gz
cpython-4348a25665b2f09f76a605bab507b4edacc4dd24.tar.bz2
silence callable warning in hmac
Diffstat (limited to 'Lib/hmac.py')
-rw-r--r--Lib/hmac.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/hmac.py b/Lib/hmac.py
index 729ef38..5388106 100644
--- a/Lib/hmac.py
+++ b/Lib/hmac.py
@@ -41,7 +41,7 @@ class HMAC:
import hashlib
digestmod = hashlib.md5
- if callable(digestmod):
+ if hasattr(digestmod, '__call__'):
self.digest_cons = digestmod
else:
self.digest_cons = lambda d='': digestmod.new(d)