![]() ![]() warn ( "`fix_encoding_and_explain()` has moved to the main module of ftfy.", DeprecationWarning, ) return ftfy. ![]() Two of these functions are particularly useful on their own, as more robust versions of functions in the Python standard library: - :func:`_escapes` - :func:`_html` """ import codecs import html import re import warnings import ftfy from ftfy.chardata import ( ALTERED_UTF8_RE, C1_CONTROL_RE, CONTROL_CHARS, DOUBLE_QUOTE_RE, HTML_ENTITIES, HTML_ENTITY_RE, LIGATURES, LOSSY_UTF8_RE, SINGLE_QUOTE_RE, UTF8_DETECTOR_RE, WIDTH_MAP, ) from ftfy.badness import is_bad def fix_encoding_and_explain ( text ): """ Deprecated copy of `ftfy.fix_encoding_and_explain()`. """ The `ftfy.fixes` module contains the individual fixes that :func:`ftfy.fix_text` can perform, and provides the functions that are named in "explanations" such as the output of :func:`ftfy.fix_and_explain`.
0 Comments
Leave a Reply. |