From 6b68916d74df483bc5e1fbe12c2082f39554bbc8 Mon Sep 17 00:00:00 2001 From: Marco Gavelli Date: Thu, 5 Sep 2019 20:02:51 +0200 Subject: [PATCH] Fix Python 2 only issue (str.split does not take keyword parameters) Fixes #469 --- fbchat/_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbchat/_message.py b/fbchat/_message.py index f2d3a8c..8c82b7a 100644 --- a/fbchat/_message.py +++ b/fbchat/_message.py @@ -26,7 +26,7 @@ class EmojiSize(Enum): "s": cls.SMALL, } for tag in tags or (): - data = tag.split(":", maxsplit=1) + data = tag.split(":", 1) if len(data) > 1 and data[0] == "hot_emoji_size": return string_to_emojisize.get(data[1]) return None