aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-01-30 19:46:52 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2022-01-30 20:03:08 +0100
commit4051adc5c80f617fef6838267f382415f07c023a (patch)
tree9375abf4a376d5abdcee97d18d4d20abb916f22a /wee_slack.py
parentdc058f52c113517e40799f6b92feba74424383db (diff)
downloadwee-slack-4051adc5c80f617fef6838267f382415f07c023a.tar.gz
Fix formatting after black upgrade
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 8eea38e..cf2fb49 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1472,7 +1472,7 @@ class SlackRequest(object):
return self.tries < self.retries
def retry_ready(self):
- return (self.start_time + (self.tries ** 2)) < time.time()
+ return (self.start_time + (self.tries**2)) < time.time()
class SlackSubteam(object):
@@ -3300,14 +3300,10 @@ class SlackMessage(object):
if self.message_json.get("mrkdwn", True):
text = render_formatting(text)
- if (
- self.message_json.get("subtype")
- in (
- "channel_join",
- "group_join",
- )
- and self.message_json.get("inviter")
- ):
+ if self.message_json.get("subtype") in (
+ "channel_join",
+ "group_join",
+ ) and self.message_json.get("inviter"):
inviter_id = self.message_json.get("inviter")
text += " by invitation from <@{}>".format(inviter_id)