Re BddlmZddlmZddlmZmZgdZdZdZ dS))UniversalDetector) InputState) __version__VERSION)rdetect detect_allrrc@t|tsSt|ts/tdt |t|}t }|||S)z Detect the encoding of the given byte string. :param byte_str: The byte sequence to examine. :type byte_str: ``bytes`` or ``bytearray`` 3Expected object of type bytes or bytearray, got: {}) isinstance bytearraybytes TypeErrorformattyperfeedclose)byte_strdetectors /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/chardet/__init__.pyrrs h * *+(E** +!!'X!7!799 9!**H ""H MM( >>  c$t|tsSt|ts/tdt |t|}t }||||j tj krg}|j D]}| |jkr|j}|j}|dr"|jr|j||}||| |jdt/|dkrt1|dS|jgS)z Detect all the possible encodings of the given byte string. :param byte_str: The byte sequence to examine. :type byte_str: ``bytes`` or ``bytearray`` r ziso-8859)encoding confidencelanguagec|d S)Nr)results rzdetect_all..Qsvl7K6Kr)key)r r r rrrrrr _input_stater HIGH_BYTE_charset_probersget_confidenceMINIMUM_THRESHOLD charset_namelower startswith_has_win_bytes ISO_WIN_MAPgetappendrlensortedr)rrresultsproberr&lower_charset_names rrr-s h * *+(E** +!!'X!7!799 9!**H ""H MM( NN 444/  F$$&&)CCC%2 %+%8%>%>%@%@"&00<<J.J'/';'?'?@Rr6sy&100000)))))))) R Q Q$&&&&&r