Skip to content

Made python-http-client to autopep8 #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions python_http_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

class Response(object):
"""Holds the response from an API call."""

def __init__(self, response):
"""
:param response: The return value from a open call
Expand Down Expand Up @@ -57,6 +58,7 @@ def to_dict(self):

class Client(object):
"""Quickly and easily access any REST or REST-like API."""

def __init__(self,
host,
request_headers=None,
Expand Down Expand Up @@ -225,6 +227,7 @@ def http_request(*_, **kwargs):
else:
data = json.dumps(
kwargs['request_body']).encode('utf-8')

if 'query_params' in kwargs:
params = kwargs['query_params']
else:
Expand Down
1 change: 1 addition & 0 deletions python_http_client/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

class HTTPError(Exception):
''' Base of all other errors'''

def __init__(self, error):
self.status_code = error.code
self.reason = error.reason
Expand Down