aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2017-04-15 01:29:32 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2017-04-15 02:22:13 +0200
commit1195eb4ddf36397fa330a1407a0b63ead787cf9f (patch)
tree00456e4527cc1298d7fb4536153abec33e953e61 /wee_slack.py
parent975fd6b425c12ec8127b815ce59d0d0a97a5c5e2 (diff)
downloadwee-slack-1195eb4ddf36397fa330a1407a0b63ead787cf9f.tar.gz
Remove utf8 argument from get_sender
This was not used anywhere.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/wee_slack.py b/wee_slack.py
index fecf2d8..db485fd 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1823,7 +1823,7 @@ class SlackMessage(object):
self.suffix = new_suffix
dbg(self.message_json)
- def get_sender(self, utf8=True):
+ def get_sender(self):
name = ""
name_plain = ""
if 'bot_id' in self.message_json and self.message_json['bot_id'] is not None:
@@ -1849,10 +1849,7 @@ class SlackMessage(object):
else:
name = ""
name_plain = ""
- if utf8:
- return (name.encode('utf-8'), name_plain.encode('utf-8'))
- else:
- return (name, name_plain)
+ return (name, name_plain)
def add_reaction(self, reaction, user):
m = self.message_json.get('reactions', None)