Fix Python 2 only issue (str.split does not take keyword parameters)
Fixes #469
This commit is contained in:
committed by
Mads Marquart
parent
12e752e681
commit
6b68916d74
@@ -26,7 +26,7 @@ class EmojiSize(Enum):
|
|||||||
"s": cls.SMALL,
|
"s": cls.SMALL,
|
||||||
}
|
}
|
||||||
for tag in tags or ():
|
for tag in tags or ():
|
||||||
data = tag.split(":", maxsplit=1)
|
data = tag.split(":", 1)
|
||||||
if len(data) > 1 and data[0] == "hot_emoji_size":
|
if len(data) > 1 and data[0] == "hot_emoji_size":
|
||||||
return string_to_emojisize.get(data[1])
|
return string_to_emojisize.get(data[1])
|
||||||
return None
|
return None
|
||||||
|
Reference in New Issue
Block a user