diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2024-01-16 18:45:26 +0100 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2024-01-16 18:47:42 +0100 |
commit | 9aca78ddf6d269beca776d49945a88e494f4c4ed (patch) | |
tree | 3cb3c77817e538c7052c1ec80dd03bb6d4039193 /security/py-merkletools/files/patch-merkletools_____init____.py | |
parent | security/py-pysha3: Mark DEPRECATED (diff) |
security/py-merkletools: Refactor
Before python 3.6 version pysha3 was required as a runtime dependency
however after the import of sha3 this can be skipped. Additionally this
port has not been updated since 2019 and should be deprecated.
Approved by: portmgr (blanket)
Diffstat (limited to 'security/py-merkletools/files/patch-merkletools_____init____.py')
-rw-r--r-- | security/py-merkletools/files/patch-merkletools_____init____.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/security/py-merkletools/files/patch-merkletools_____init____.py b/security/py-merkletools/files/patch-merkletools_____init____.py new file mode 100644 index 000000000000..b8a32413a358 --- /dev/null +++ b/security/py-merkletools/files/patch-merkletools_____init____.py @@ -0,0 +1,14 @@ +--- merkletools/__init__.py.orig 2024-01-16 17:39:29 UTC ++++ merkletools/__init__.py +@@ -1,11 +1,5 @@ import binascii + import hashlib + import binascii +-try: +- import sha3 +-except: +- from warnings import warn +- warn("sha3 is not working!") +- + + class MerkleTools(object): + def __init__(self, hash_type="sha256"): |