Skip to content

Commit

Permalink
fix warning of int_to_string() and string_to_int()
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Sep 13, 2024
1 parent 4096fa0 commit 3cb9ed8
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 3cb9ed8

Please sign in to comment.