You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
util.string_to_number seems different from int_to_string
defint_to_string(x): # pragma: no cover"""Convert integer x into a string of bytes, as per X9.62."""# deprecated in 0.19warnings.warn(
"Function is unused in library code. If you use this code, ""change to util.string_to_number.",
DeprecationWarning,
)
assertx>=0ifx==0:
returnb"\0"result= []
whilex:
ordinal=x&0xFFresult.append(int2byte(ordinal))
x >>= 8result.reverse()
returnb"".join(result)
The text was updated successfully, but these errors were encountered:
util.string_to_number
seems different fromint_to_string
The text was updated successfully, but these errors were encountered: