27 lines
830 B
Diff
27 lines
830 B
Diff
From f6f6666438af884da7b4b1d76a258639f949406f Mon Sep 17 00:00:00 2001
|
|
From: Jeffrey C. Ollie <jeff@ocjtech.us>
|
|
Date: Thu, 2 Dec 2010 13:05:50 -0600
|
|
Subject: [PATCH] Don't fail on older python versions because of hashes.
|
|
|
|
---
|
|
dns/hash.py | 3 ---
|
|
1 files changed, 0 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/dns/hash.py b/dns/hash.py
|
|
index 7bd5ae5..8582a9c 100644
|
|
--- a/dns/hash.py
|
|
+++ b/dns/hash.py
|
|
@@ -37,9 +37,6 @@ def _setup():
|
|
if sys.hexversion >= 0x02050200:
|
|
_hashes['SHA384'] = hashlib.sha384
|
|
_hashes['SHA512'] = hashlib.sha512
|
|
- else:
|
|
- _hashes['SHA384'] = _need_later_python('SHA384')
|
|
- _hashes['SHA512'] = _need_later_python('SHA512')
|
|
|
|
if sys.hexversion < 0x02050000:
|
|
# hashlib doesn't conform to PEP 247: API for
|
|
--
|
|
1.7.3.2
|
|
|