From 3cb9ed8fe2ab094624a78d932249912097fba26e Mon Sep 17 00:00:00 2001 From: Alicja Kario Date: Fri, 13 Sep 2024 19:36:11 +0200 Subject: [PATCH] fix warning of int_to_string() and string_to_int() --- src/ecdsa/ecdsa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ecdsa/ecdsa.py b/src/ecdsa/ecdsa.py index 1c2e25c5..f7109659 100644 --- a/src/ecdsa/ecdsa.py +++ b/src/ecdsa/ecdsa.py @@ -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 @@ -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