Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit 72cb8b2

Browse files
committed
fixed tox errors and aio HTTPClient call
1 parent ac8911e commit 72cb8b2

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

consul/aio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def __init__(
2121
port=8500,
2222
scheme='http',
2323
loop=None,
24-
verify=True):
24+
verify=True,
25+
cert=None):
2526
self.host = host
2627
self.port = port
2728
self.scheme = scheme

consul/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def __init__(
235235
236236
*verify* is whether to verify the SSL certificate for HTTPS requests
237237
238-
*cert* client side certs for HTTPS requests
238+
*cert* client side certificates for HTTPS requests
239239
"""
240240

241241
# TODO: Status

consul/std.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class HTTPClient(object):
1212
def __init__(self, host='127.0.0.1', port=8500, scheme='http',
13-
verify=True,cert=None):
13+
verify=True, cert=None):
1414
self.host = host
1515
self.port = port
1616
self.scheme = scheme
@@ -38,7 +38,8 @@ def get(self, callback, path, params=None):
3838
def put(self, callback, path, params=None, data=''):
3939
uri = self.uri(path, params)
4040
return callback(self.response(
41-
self.session.put(uri, data=data, verify=self.verify, cert=self.cert)))
41+
self.session.put(uri, data=data, verify=self.verify,
42+
cert=self.cert)))
4243

4344
def delete(self, callback, path, params=None):
4445
uri = self.uri(path, params)
@@ -48,7 +49,8 @@ def delete(self, callback, path, params=None):
4849
def post(self, callback, path, params=None, data=''):
4950
uri = self.uri(path, params)
5051
return callback(self.response(
51-
self.session.post(uri, data=data, verify=self.verify, cert=self.cert)))
52+
self.session.post(uri, data=data, verify=self.verify,
53+
cert=self.cert)))
5254

5355

5456
class Consul(base.Consul):

0 commit comments

Comments
 (0)