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:
2
jsonrpc/__init__.py
Normal file
2
jsonrpc/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .json import loads, dumps, JSONEncodeException, JSONDecodeException
|
||||
from jsonrpc.proxy import ServiceProxy, JSONRPCException
|
||||
3
jsonrpc/authproxy.py
Normal file
3
jsonrpc/authproxy.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
|
||||
|
||||
__all__ = ['AuthServiceProxy', 'JSONRPCException']
|
||||
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
|
||||
1
jsonrpc/proxy.py
Normal file
1
jsonrpc/proxy.py
Normal file
@@ -0,0 +1 @@
|
||||
from bitcoinrpc.authproxy import AuthServiceProxy as ServiceProxy, JSONRPCException
|
||||
Reference in New Issue
Block a user