diff --git a/test/functional/test_framework/authproxy.py b/test/functional/test_framework/authproxy.py index 343c8f286b697..4a309f299afb9 100644 --- a/test/functional/test_framework/authproxy.py +++ b/test/functional/test_framework/authproxy.py @@ -35,6 +35,7 @@ import base64 import decimal +from http import HTTPStatus import http.client import json import logging @@ -47,6 +48,7 @@ log = logging.getLogger("BitcoinRPC") + class JSONRPCException(Exception): def __init__(self, rpc_error): try: @@ -62,6 +64,7 @@ def EncodeDecimal(o): return str(o) raise TypeError(repr(o) + " is not JSON serializable") + class AuthServiceProxy(): __id_count = 0