mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-20 04:36:08 +01:00
Squashed 'qa/rpc-tests/python-bitcoinrpc/' content from commit e484743
git-subtree-dir: qa/rpc-tests/python-bitcoinrpc git-subtree-split: e48474322de165212c5aa29574297e78b09df8d6
This commit is contained in:
9
jsonrpc/json.py
Normal file
9
jsonrpc/json.py
Normal file
@@ -0,0 +1,9 @@
|
||||
_json = __import__('json')
|
||||
loads = _json.loads
|
||||
dumps = _json.dumps
|
||||
if hasattr(_json, 'JSONEncodeException'):
|
||||
JSONEncodeException = _json.JSONEncodeException
|
||||
JSONDecodeException = _json.JSONDecodeException
|
||||
else:
|
||||
JSONEncodeException = TypeError
|
||||
JSONDecodeException = ValueError
|
||||
Reference in New Issue
Block a user