remove explicitly some warnings present in arrow==0.14.5

This commit is contained in:
Manuel Cortez 2019-08-15 08:22:22 -05:00
parent 29290b1468
commit bafb56651c

View File

@ -17,9 +17,13 @@ import languageHandler
import arrow
import logging
import config
import warnings
from arrow.factory import ArrowParseWarning
from .long_tweets import twishort, tweets
log = logging.getLogger("compose")
warnings.simplefilter("ignore", ArrowParseWarning)
def StripChars(s):
"""Converts any html entities in s to their unicode-decoded equivalents and returns a string."""
entity_re = re.compile(r"&(#\d+|\w+);")