8000 Fix flake8 errors · madCode/twilio-python@c7a4d41 · GitHub
[go: up one dir, main page]

Skip to content

Commit c7a4d41

Browse files
author
Zachary White
committed
Fix flake8 errors
1 parent 8c18de2 commit c7a4d41

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

twilio/rest/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def __init__(self, account=None, token=None, base="https://api.twilio.com",
9292
self.base = base
9393
self.auth = (account, token)
9494
self.timeout = timeout
95-
self.account_uri = "{0}/{1}/Accounts/{2}".format(base, version, account)
95+
self.account_uri = "{0}/{1}/Accounts/{2}".format(base,
96+
version, account)
9697

9798
def dependent_phone_numbers(self, address_sid):
9899
"""
@@ -282,8 +283,8 @@ def reservations(self, workspace_sid, task_sid):
282283
Return a :class:`Reservations` instance for the :class:`Reservation`
283284
with the given workspace_sid ans task_sid
284285
"""
285-
base_uri = "{0}/{1}/Tasks/{2}".format(self.workspace_uri, workspace_sid,
286-
task_sid)
286+
base_uri = "{0}/{1}/Tasks/{2}".format(self.workspace_uri,
287+
workspace_sid, task_sid)
287288
return Reservations(base_uri, self.auth, self.timeout)
288289

289290
def task_queues(self, workspace_sid):

twilio/rest/resources/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ def __init__(self, base_uri, auth, timeout=UNSET_TIMEOUT):
178178
self.timeout = timeout
179179

180180
def __eq__(self, other):
181-
return (isinstance(other, self.__class__)
182-
and self.__dict__ == other.__dict__)
181+
return (isinstance(other, self.__class__) and
182+
self.__dict__ == other.__dict__)
183183

184184
def __hash__(self):
185185
return hash(frozenset(self.__dict__))
@@ -244,8 +244,8 @@ def load(self, entries):
244244
del entries["uri"]
245245

246246
for key in entries.keys():
247-
if (key.startswith("date_")
248-
and isinstance(entries[key], string_types)):
247+
if (key.startswith("date_") and
248+
isinstance(entries[key], string_types)):
249249
entries[key] = self._parse_date(entries[key])
250250

251251
self.__dict__.update(entries)

0 commit comments

Comments
 (0)
0