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:
Gavin Andresen
2014-02-26 15:07:33 -05:00
parent 829f822267
commit 260cf5c0a4
9 changed files with 193 additions and 0 deletions

9
jsonrpc/json.py Normal file
View 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