Skip to content

Commit e97fd37

Browse files
committed
Remove _connection parameter from RawProxy
Unclear that anything uses it; if you do please complain!
1 parent abeba75 commit e97fd37

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

bitcoin/rpc.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ class RawProxy(object):
5858
def __init__(self, service_url=None,
5959
service_port=None,
6060
btc_conf_file=None,
61-
timeout=DEFAULT_HTTP_TIMEOUT,
62-
_connection=None):
61+
timeout=DEFAULT_HTTP_TIMEOUT):
6362
"""Low-level JSON-RPC proxy
6463
6564
Unlike Proxy no conversion is done from the raw JSON objects.
@@ -122,10 +121,7 @@ def __init__(self, service_url=None,
122121
authpair = authpair.encode('utf8')
123122
self.__auth_header = b"Basic " + base64.b64encode(authpair)
124123

125-
if _connection:
126-
# Callables re-use the connection of the original proxy
127-
self.__conn = _connection
128-
elif self.__url.scheme == 'https':
124+
if self.__url.scheme == 'https':
129125
self.__conn = httplib.HTTPSConnection(self.__url.hostname, port=port,
130126
key_file=None, cert_file=None,
131127
timeout=timeout)

0 commit comments

Comments
 (0)