Skip to content

Commit 46ea13e

Browse files
committed
Pacify Python DeprecationWarnings
1 parent 59718d0 commit 46ea13e

File tree

2 files changed

+2
-28
lines changed

2 files changed

+2
-28
lines changed

tronapi/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from tronapi.base.account import Account, PrivateKey
1313
from tronapi.base.datastructures import AttributeDict
14+
from tronapi.base.decorators import deprecated_for
1415

1516
from tronapi.exceptions import InvalidTronError, TronError
1617
from tronapi.manager import TronManager
@@ -20,7 +21,6 @@
2021
from tronapi.base.validation import is_address
2122
from tronapi.utils.crypto import keccak as tron_keccak
2223
from tronapi.utils.currency import to_sun, from_sun
23-
from tronapi.utils.decorators import deprecated_for
2424
from tronapi.utils.encoding import to_bytes, to_int, to_hex, to_text
2525
from tronapi.utils.types import is_integer
2626

@@ -226,7 +226,7 @@ def is_valid_provider(provider) -> bool:
226226
return isinstance(provider, HttpProvider)
227227

228228
@staticmethod
229-
@deprecated_for("This method has been renamed to keccak")
229+
@deprecated_for("keccak")
230230
@apply_to_return_value(HexBytes)
231231
def sha3(primitive=None, text=None, hexstr=None):
232232
"""Returns the Keccak SHA256 of the given value.

tronapi/utils/decorators.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)