mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-25 21:39:05 +01:00
test: Rename EncodeDecimal to serialization_fallback
The new name better explains that the function handles fallbacks, without listing all in the function name.
This commit is contained in:
@@ -24,7 +24,7 @@ from pathlib import Path
|
||||
|
||||
from .authproxy import (
|
||||
JSONRPCException,
|
||||
EncodeDecimal,
|
||||
serialization_fallback,
|
||||
)
|
||||
from .descriptors import descsum_create
|
||||
from .p2p import P2P_SUBVERSION
|
||||
@@ -714,7 +714,7 @@ def arg_to_cli(arg):
|
||||
elif arg is None:
|
||||
return 'null'
|
||||
elif isinstance(arg, dict) or isinstance(arg, list):
|
||||
return json.dumps(arg, default=EncodeDecimal)
|
||||
return json.dumps(arg, default=serialization_fallback)
|
||||
else:
|
||||
return str(arg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user