Update to emoji 1.7.0

Removing deprecated function "get_emoji_regexp()"
This commit is contained in:
ente 2022-05-13 22:28:02 +02:00
parent 479bc17672
commit 473507a6eb
2 changed files with 2 additions and 4 deletions

View file

@ -1,12 +1,10 @@
import configparser import configparser
import os import os
import re
import sys import sys
import argparse import argparse
from datetime import * from datetime import *
import requests import requests
import emoji as emojilib import emoji as emojilib
# TODO: Replace with emojis library!
def check_str_to_bool(input_text) -> bool: def check_str_to_bool(input_text) -> bool:
@ -200,7 +198,7 @@ for element in noteList:
UTF8text = element["text"] + " " + element["cw"] UTF8text = element["text"] + " " + element["cw"]
else: else:
UTF8text = element["text"] 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) UTF8text = emojilib.demojize(UTF8text)
# TODO urgent! replace "get_emoji_regexp" # TODO urgent! replace "get_emoji_regexp"
if len(UTF8ListRaw) > 0: if len(UTF8ListRaw) > 0:

View file

@ -1,3 +1,3 @@
emoji==1.6.3 emoji~=1.7.0
configparser~=5.2.0 configparser~=5.2.0
requests~=2.27.1 requests~=2.27.1