Skip to content

Commit bfbbb69

Browse files
committed
Correct flake8 issues
1 parent 06bc932 commit bfbbb69

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

webexteamssdk/exceptions.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,21 @@ def __init__(self, response):
145145
# Error message
146146
response_code = response.status_code
147147
response_reason = " " + response.reason if response.reason else ""
148-
description = RESPONSE_CODES.get(response_code,
149-
"Unknown Response Code")
148+
description = RESPONSE_CODES.get(
149+
response_code,
150+
"Unknown Response Code",
151+
)
150152
detail = _response_to_string(response)
151153

152-
super(ApiError, self).__init__("Response Code [{}]{} - {}\n{}"
153-
"".format(response_code,
154-
response_reason,
155-
description,
156-
detail))
154+
super(ApiError, self).__init__(
155+
"Response Code [{}]{} - {}\n{}"
156+
"".format(
157+
response_code,
158+
response_reason,
159+
description,
160+
detail
161+
)
162+
)
157163

158164

159165
class MalformedResponse(webexteamssdkException):

webexteamssdk/models/dictionary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ def dict_data_factory(model, json_data):
5151
dictionary.
5252
5353
"""
54-
return json_dict(json_data)
54+
return json_dict(json_data)

webexteamssdk/models/immutable.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
SOFTWARE.
3030
"""
3131

32-
3332
from __future__ import (
3433
absolute_import,
3534
division,
@@ -147,7 +146,7 @@ def _freeze(self):
147146
def __eq__(self, other):
148147
"""Determine if two objects are equal."""
149148
return isinstance(other, self.__class__) \
150-
and self._freeze() == other._freeze()
149+
and self._freeze() == other._freeze()
151150

152151
def __hash__(self):
153152
"""Hash the data object."""

0 commit comments

Comments
 (0)