8000 FORMATTING · ShowLowTechnology/twilio-python@50e3d91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50e3d91

Browse files
committed
FORMATTING
1 parent 32ea994 commit 50e3d91

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

twilio/task_router/__init__.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,22 @@ def __init__(self, account_sid, auth_token, workspace_sid, worker_sid,
3939

4040
@property
4141
def workspace_url(self):
42-
return '%s/Accounts/%s/Workspaces/%s' % (self.base_url, self.account_sid, self.workspace_sid)
42+
return '%s/Accounts/%s/Workspaces/%s' % (
43+
self.base_url,
44+
self.account_sid,
45+
self.workspace_sid,
46+
)
4347

4448
@property
4549
def worker_url(self):
4650
return '%s/Workers/%s' % (self.workspace_url, self.worker_sid)
4751

4852
def _allow_worker_websocket_urls(self):
49-
worker_event_url = '%s/%s/%s' % (self.base_ws_url, self.account_sid, self.worker_sid)
53+
worker_event_url = '%s/%s/%s' % (
54+
self.base_ws_url,
55+
self.account_sid,
56+
self.worker_sid,
57+
)
5058
self.policies.append(make_policy(
5159
worker_event_url,
5260
'GET',
@@ -112,7 +120,8 @@ def _generate_token(self, ttl, attributes=None):
112120
return jwt.encode(payload, self.auth_token, 'HS256')
113121

114122

115-
def make_policy(url, method, query_filter=None, post_filter=None, allowed=True):
123+
def make_policy(url, method, query_filter=None, post_filter=None,
124+
allowed=True):
116125
"""
117126
Create a policy dictionary for the given resource and method.
118127

0 commit comments

Comments
 (0)
0