Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
security/py-merkletools/files/patch-merkletools_____init____.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"): |