ports/security/py-merkletools/files/patch-merkletools_____init____.py
Muhammad Moinur Rahman 9aca78ddf6
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)
2024-01-16 18:47:42 +01:00

14 lines
325 B
Python

--- 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"):