Skip to content
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

fix warning of int_to_string() and string_to_int() #347

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ecdsa/ecdsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def int_to_string(x): # pragma: no cover
# deprecated in 0.19
warnings.warn(
"Function is unused in library code. If you use this code, "
"change to util.string_to_number.",
"change to util.number_to_string.",
DeprecationWarning,
)
assert x >= 0
Expand All @@ -296,7 +296,7 @@ def string_to_int(s): # pragma: no cover
# deprecated in 0.19
warnings.warn(
"Function is unused in library code. If you use this code, "
"change to util.number_to_string.",
"change to util.string_to_number.",
DeprecationWarning,
)
result = 0
Expand Down
Loading