Skip to content

Commit 7d0f7bc

Browse files
author
Matt Bernier
authored
Merge pull request #67 from Madhur96/master
Made python-http-client to autopep8
2 parents 01bba17 + 4bd060b commit 7d0f7bc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

python_http_client/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
class Response(object):
1818
"""Holds the response from an API call."""
19+
1920
def __init__(self, response):
2021
"""
2122
:param response: The return value from a open call
@@ -57,6 +58,7 @@ def to_dict(self):
5758

5859
class Client(object):
5960
"""Quickly and easily access any REST or REST-like API."""
61+
6062
def __init__(self,
6163
host,
6264
request_headers=None,
@@ -225,6 +227,7 @@ def http_request(*_, **kwargs):
225227
else:
226228
data = json.dumps(
227229
kwargs['request_body']).encode('utf-8')
230+
228231
if 'query_params' in kwargs:
229232
params = kwargs['query_params']
230233
else:

python_http_client/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
class HTTPError(Exception):
55
''' Base of all other errors'''
6+
67
def __init__(self, error):
78
self.status_code = error.code
89
self.reason = error.reason

0 commit comments

Comments
 (0)