diff options
| author | Luke Dashjr <[email protected]> | 2016-03-28 12:28:49 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-03-28 12:30:48 +0200 |
| commit | e7e48ba66cb597621a30945da9ca7fc36a6dc84c (patch) | |
| tree | 6e7de0660f14fae697600246a46b398efb63d33e /qa/rpc-tests/test_framework | |
| parent | test_framework: Avoid infinite loop in encoding Decimal (diff) | |
| download | discoin-e7e48ba66cb597621a30945da9ca7fc36a6dc84c.tar.xz discoin-e7e48ba66cb597621a30945da9ca7fc36a6dc84c.zip | |
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/rpc-tests/test_framework')
| -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 cfc254da0..1eb277259 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('__'): |