Skip to content

Commit 8267834

Browse files
Merge pull request #81 from delirious-lettuce/docstring_quotes
Re-do #71
2 parents b3b7b93 + 19fedce commit 8267834

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

python_http_client/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class HTTPError(Exception):
5-
''' Base of all other errors'''
5+
""" Base of all other errors"""
66

77
def __init__(self, error):
88
self.status_code = error.code
@@ -13,7 +13,7 @@ def __init__(self, error):
1313
@property
1414
def to_dict(self):
1515
"""
16-
:return: dict of response erro from the API
16+
:return: dict of response error from the API
1717
"""
1818
return json.loads(self.body.decode('utf-8'))
1919

tests/test_repofiles.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ class RepoFiles(unittest.TestCase):
2626
]
2727

2828
def _all_file(self, files):
29-
'''
29+
"""
3030
Checks the list of files and sees if they exist. If all of them don't
3131
exist, returns False. Otherwise, return True.
32-
'''
32+
"""
3333
return all(map(lambda f: not path.isfile(f), files))
3434

35-
def test_file_existance(self):
35+
def test_file_existence(self):
3636
missing = list(filter(self._all_file, self.FILES))
3737
self.assertTrue(len(missing) == 0,
3838
"Files %s aren't found" % str(missing))

tests/test_unit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(self, host, response_code):
6464

6565
def _make_request(self, opener, request):
6666

67-
if 200 <= self.response_code < 299: # if successsful code
67+
if 200 <= self.response_code < 299: # if successful code
6868
return MockResponse(self.response_code)
6969
else:
7070
raise handle_error(MockException(self.response_code))

0 commit comments

Comments
 (0)