diff options
author | Bob Halley <halley@nominum.com> | 2010-10-17 15:58:19 +0100 |
---|---|---|
committer | Bob Halley <halley@nominum.com> | 2010-10-17 15:58:19 +0100 |
commit | d0c486c1c4de8e30d87290c070bfe071563e3311 (patch) | |
tree | d3cb8d1b73ada555e9427e355d1d8175cca708f8 /dns | |
parent | 2a3547ac216ed3604a7425bba24af4ad66085e94 (diff) | |
download | dnspython-d0c486c1c4de8e30d87290c070bfe071563e3311.tar.gz |
Fix bugs in pre-hashlib compatibility code
Diffstat (limited to 'dns')
-rw-r--r-- | dns/tsig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/tsig.py b/dns/tsig.py index b4deeca..e6f2e91 100644 --- a/dns/tsig.py +++ b/dns/tsig.py @@ -203,8 +203,8 @@ def get_algorithm(algorithm): except ImportError: import md5, sha - hashes[dns.name.from_text('HMAC-MD5.SIG-ALG.REG.INT')] = md5.md5 - hashes[dns.name.from_text('hmac-sha1')] = sha.sha + hashes[dns.name.from_text('HMAC-MD5.SIG-ALG.REG.INT')] = md5 + hashes[dns.name.from_text('hmac-sha1')] = sha if isinstance(algorithm, (str, unicode)): algorithm = dns.name.from_text(algorithm) |