diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2016-03-28 12:28:49 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-03-28 12:30:48 +0200 |
commit | e7e48ba66cb597621a30945da9ca7fc36a6dc84c (patch) | |
tree | 6e7de0660f14fae697600246a46b398efb63d33e /qa | |
parent | d7b80b54fbb73acc92ddee84697ac4cc10d4d336 (diff) |
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
Diffstat (limited to 'qa')
-rw-r--r-- | qa/rpc-tests/test_framework/authproxy.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qa/rpc-tests/test_framework/authproxy.py b/qa/rpc-tests/test_framework/authproxy.py index cfc254da09..1eb2772592 100644 --- a/qa/rpc-tests/test_framework/authproxy.py +++ b/qa/rpc-tests/test_framework/authproxy.py @@ -92,11 +92,10 @@ class AuthServiceProxy(object): self.__conn = connection elif self.__url.scheme == 'https': self.__conn = httplib.HTTPSConnection(self.__url.hostname, port, - None, None, False, - timeout) + timeout=timeout) else: self.__conn = httplib.HTTPConnection(self.__url.hostname, port, - False, timeout) + timeout=timeout) def __getattr__(self, name): if name.startswith('__') and name.endswith('__'): |