Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit f7b5b33

Browse files
committed
PEP 8: Line length.
1 parent 9f7ed0d commit f7b5b33

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

slacker/__init__.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,10 @@ def get_channel_id(self, channel_name):
232232

233233

234234
class Chat(BaseAPI):
235-
def post_message(self, channel, text, username=None, as_user=None, parse=None,
236-
link_names=None, attachments=None, unfurl_links=None,
237-
unfurl_media=None, icon_url=None, icon_emoji=None):
235+
def post_message(self, channel, text, username=None, as_user=None,
236+
parse=None, link_names=None, attachments=None,
237+
unfurl_links=None, unfurl_media=None, icon_url=None,
238+
icon_emoji=None):
238239

239240
# Ensure attachments are json encoded
240241
if attachments:
@@ -483,7 +484,8 @@ def post(self, data):
483484
class Slacker(object):
484485
oauth = OAuth(timeout=DEFAULT_TIMEOUT)
485486

486-
def __init__(self, token, incoming_webhook_url=None, timeout=DEFAULT_TIMEOUT):
487+
def __init__(self, token, incoming_webhook_url=None,
488+
timeout=DEFAULT_TIMEOUT):
487489
self.im = IM(token=token, timeout=timeout)
488490
self.api = API(token=token, timeout=timeout)
489491
self.rtm = RTM(token=token, timeout=timeout)
@@ -499,4 +501,5 @@ def __init__(self, token, incoming_webhook_url=None, timeout=DEFAULT_TIMEOUT):
499501
self.channels = Channels(token=token, timeout=timeout)
500502
self.presence = Presence(token=token, timeout=timeout)
501503
self.reactions = Reactions(token=token, timeout=timeout)
502-
self.incomingwebhook = IncomingWebhook(url=incoming_webhook_url, timeout=timeout)
504+
self.incomingwebhook = IncomingWebhook(url=incoming_webhook_url,
505+
timeout=timeout)

0 commit comments

Comments
 (0)