test_framework: Py3.4 compat: Specify timeout parameter by name
Changed in version 3.4: The strict parameter was removed. HTTP 0.9-style “Simple Responses” are not longer supported. (https://docs.python.org/3/library/http.client.html) Source: https://github.com/jgarzik/python-bitcoinrpc/commit/7ebeebb4f61917fe590d980cb4f9aefdce2c8f25
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
d7b80b54fb
commit
e7e48ba66c
@@ -92,11 +92,10 @@ class AuthServiceProxy(object):
|
|||||||
self.__conn = connection
|
self.__conn = connection
|
||||||
elif self.__url.scheme == 'https':
|
elif self.__url.scheme == 'https':
|
||||||
self.__conn = httplib.HTTPSConnection(self.__url.hostname, port,
|
self.__conn = httplib.HTTPSConnection(self.__url.hostname, port,
|
||||||
None, None, False,
|
timeout=timeout)
|
||||||
timeout)
|
|
||||||
else:
|
else:
|
||||||
self.__conn = httplib.HTTPConnection(self.__url.hostname, port,
|
self.__conn = httplib.HTTPConnection(self.__url.hostname, port,
|
||||||
False, timeout)
|
timeout=timeout)
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
if name.startswith('__') and name.endswith('__'):
|
if name.startswith('__') and name.endswith('__'):
|
||||||
|
|||||||
Reference in New Issue
Block a user