From 473507a6eba57da96863cbec7fd3899ade3067db Mon Sep 17 00:00:00 2001 From: ente Date: Fri, 13 May 2022 22:28:02 +0200 Subject: [PATCH] Update to emoji 1.7.0 Removing deprecated function "get_emoji_regexp()" --- miceco.py | 4 +--- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/miceco.py b/miceco.py index c8b4dc3..80f5acd 100755 --- a/miceco.py +++ b/miceco.py @@ -1,12 +1,10 @@ import configparser import os -import re import sys import argparse from datetime import * import requests import emoji as emojilib -# TODO: Replace with emojis library! def check_str_to_bool(input_text) -> bool: @@ -200,7 +198,7 @@ for element in noteList: UTF8text = element["text"] + " " + element["cw"] else: UTF8text = element["text"] - UTF8ListRaw = re.findall(emojilib.get_emoji_regexp(), UTF8text) # Find all UTF8 Emojis in Text and CW text + UTF8ListRaw = emojilib.distinct_emoji_list(UTF8text) # Find all UTF8 Emojis in Text and CW text UTF8text = emojilib.demojize(UTF8text) # TODO urgent! replace "get_emoji_regexp" if len(UTF8ListRaw) > 0: diff --git a/requirements.txt b/requirements.txt index 3b67ec1..ea9f9da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -emoji==1.6.3 +emoji~=1.7.0 configparser~=5.2.0 requests~=2.27.1 \ No newline at end of file