-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pacify Python DeprecationWarning
s + add solidityKeccak() and deprecate soliditySha3()
#1139
Conversation
DeprecationWarning
sDeprecationWarning
s
3de63f5
to
81f027a
Compare
81f027a
to
9644051
Compare
Note: we can also help other projects with theirs: |
1a6aa81
to
15a7830
Compare
Looking good! Still a WIP? Are you up for opening another PR against the v4 branch, too? |
Yes, still a WIP: I'd like to run the full test suite locally, in one go, so the
I'll go ahead and try cherry-picking. |
15a7830
to
f420eb2
Compare
|
The remaining warnings are:
IMO ready, unmarking |
DeprecationWarning
sDeprecationWarning
s
SQUASHED: main: minor, fix incorrect deprecation message. Reads as sha3 is deprecated in favor of This method has been renamed to keccak otherwise.
f420eb2
to
9cd9918
Compare
@@ -173,9 +173,15 @@ def keccak(primitive=None, text=None, hexstr=None): | |||
) | |||
|
|||
@combomethod | |||
@deprecated_for("solidityKeccak") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deprecation message is "swallowed" (never actually shown); see issue #1140.
I think this should also be backported to |
Yup. I opened a new issue since veox already said he wasn't into it: #1143 |
…always). Addresses criticism ethereum#1139 (review)
DeprecationWarning
sDeprecationWarning
s + add solidityKeccak() and deprecate soliditySha3()
…always). Addresses criticism ethereum#1139 (review)
What was wrong?
Without
export PYTHONWARNINGS=ignore
, many programs are now overly noisy.How was it fixed?
Collecting and squashing these warnings here.
Snippet for
releases.rst
Cute Animal Picture
"Whistle if you see 'em!.."
Source: Wikipedia; by April King