Skip to content

Commit ea96669

Browse files
authored
Merge pull request #347 from tlsfuzzer/deprecation-docs-fixes
fix warning of int_to_string() and string_to_int()
2 parents 4096fa0 + 3cb9ed8 commit ea96669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ecdsa/ecdsa.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def int_to_string(x): # pragma: no cover
275275
# deprecated in 0.19
276276
warnings.warn(
277277
"Function is unused in library code. If you use this code, "
278-
"change to util.string_to_number.",
278+
"change to util.number_to_string.",
279279
DeprecationWarning,
280280
)
281281
assert x >= 0
@@ -296,7 +296,7 @@ def string_to_int(s): # pragma: no cover
296296
# deprecated in 0.19
297297
warnings.warn(
298298
"Function is unused in library code. If you use this code, "
299-
"change to util.number_to_string.",
299+
"change to util.string_to_number.",
300300
DeprecationWarning,
301301
)
302302
result = 0

0 commit comments

Comments
 (0)