Skip to content

Use triple double-quoted strings for docstring (PEP8), fix typo #71

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

Closed
wants to merge 4 commits into from
Closed
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
4 changes: 2 additions & 2 deletions python_http_client/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class HTTPError(Exception):
''' Base of all other errors'''
"""Base of all other errors"""
def __init__(self, error):
self.status_code = error.code
self.reason = error.reason
Expand All @@ -12,7 +12,7 @@ def __init__(self, error):
@property
def to_dict(self):
"""
:return: dict of response erro from the API
:return: dict of response error from the API
"""
return json.loads(self.body.decode('utf-8'))

Expand Down
2 changes: 1 addition & 1 deletion tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self, host, response_code):

def _make_request(self, opener, request):

if 200 <= self.response_code < 299: # if successsful code
if 200 <= self.response_code <299: # if successful code
return MockResponse(self.response_code)
else:
raise handle_error(MockException(self.response_code))
Expand Down