diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2022-01-30 19:46:52 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2022-01-30 20:03:08 +0100 |
commit | 4051adc5c80f617fef6838267f382415f07c023a (patch) | |
tree | 9375abf4a376d5abdcee97d18d4d20abb916f22a | |
parent | dc058f52c113517e40799f6b92feba74424383db (diff) | |
download | wee-slack-4051adc5c80f617fef6838267f382415f07c023a.tar.gz |
Fix formatting after black upgrade
-rw-r--r-- | _pytest/test_utf8_helpers.py | 1 | ||||
-rw-r--r-- | wee_slack.py | 14 |
2 files changed, 5 insertions, 10 deletions
diff --git a/_pytest/test_utf8_helpers.py b/_pytest/test_utf8_helpers.py index 297805c..16785fe 100644 --- a/_pytest/test_utf8_helpers.py +++ b/_pytest/test_utf8_helpers.py @@ -27,7 +27,6 @@ if sys.version_info.major > 2: # noqa: C901 def test_encode_should_not_transform_bytes(): assert b_word == encode_to_utf8(b_word) - else: def test_decode_preserves_string_without_utf8(): 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) |