aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_pytest/test_utf8_helpers.py1
-rw-r--r--wee_slack.py14
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)