Sitelet https://github.com/jgarzik/python-bitcoinrpc/commit/7ebeebb4f61917fe590d980cb4f9aefdce2c8f25
Skip to content

Commit 7ebeebb

Browse files
committed
Python 3.4 compatibility: Specify timeout parameter by name and skip default parameters that may be missing/removed
1 parent 07e71c3 commit 7ebeebb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎bitcoinrpc/authproxy.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,10 @@ def __init__(self, service_url, service_name=None, timeout=HTTP_TIMEOUT):
7272
self.__auth_header = "Basic %s" % base64.b64encode(authpair)
7373
if self.__url.scheme == 'https':
7474
self.__conn = httplib.HTTPSConnection(self.__url.hostname, port,
75-
None, None, False,
76-
timeout)
75+
timeout=timeout)
7776
else:
7877
self.__conn = httplib.HTTPConnection(self.__url.hostname, port,
79-
False, timeout)
78+
timeout=timeout)
8079

8180
def __getattr__(self, name):
8281
if name.startswith('__') and name.endswith('__'):

0 commit comments

Comments
 (0)