diff options
author | nicoco <nicoco@nicoco.fr> | 2022-08-29 00:59:14 +0200 |
---|---|---|
committer | nicoco <nicoco@nicoco.fr> | 2022-08-29 00:59:14 +0200 |
commit | fbdff30ddabefc6beff90205b870194f3158d3f5 (patch) | |
tree | f0efe2261312631c7554f460608911c7451d7723 | |
parent | 62701bc56276a85ba4ad22ddbec8acc0112116f9 (diff) | |
download | slixmpp-fbdff30ddabefc6beff90205b870194f3158d3f5.tar.gz slixmpp-fbdff30ddabefc6beff90205b870194f3158d3f5.tar.bz2 slixmpp-fbdff30ddabefc6beff90205b870194f3158d3f5.tar.xz slixmpp-fbdff30ddabefc6beff90205b870194f3158d3f5.zip |
fix emoji==2.0.0 compatibility
-rw-r--r-- | slixmpp/plugins/xep_0444/stanza.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/slixmpp/plugins/xep_0444/stanza.py b/slixmpp/plugins/xep_0444/stanza.py index 02684df1..c9ee07d7 100644 --- a/slixmpp/plugins/xep_0444/stanza.py +++ b/slixmpp/plugins/xep_0444/stanza.py @@ -6,9 +6,7 @@ from typing import Set, Iterable from slixmpp.xmlstream import ElementBase try: - from emoji import UNICODE_EMOJI - if UNICODE_EMOJI.get('en'): - UNICODE_EMOJI = UNICODE_EMOJI['en'] + from emoji import EMOJI_DATA as UNICODE_EMOJI except ImportError: UNICODE_EMOJI = None |