2bi : S r SSKrSSKrSSKrSSKJrJrJr SSKJ r SSK Jr SSKJ r JrJr SSKJr SS KJr SS KJr SSKJr SSKJr SS KJr SSKJr " S S5 rg)a Module containing the UniversalDetector detector class, which is the primary class a user of ``chardet`` should use. :author: Mark Pilgrim (initial port to Python) :author: Shy Shalom (original C code) :author: Dan Blanchard (major refactoring for 3.0) :author: Ian Cordasco N)ListOptionalUnion )CharSetGroupProber) CharSetProber) InputStateLanguageFilterProbingState)EscCharSetProber)Latin1Prober)MacRomanProber)MBCSGroupProber) ResultDict)SBCSGroupProber) UTF1632Proberc f \ rS rSrSrSr\R " S5 r\R " S5 r \R " S5 r SSS S SSS SS.rSSSS SSSS.r\ R S4S\ S\SS4S jjr\S\4S j5 r\S\4S j5 r\S\\ 4S j5 rS#S jrS\\\4 SS4S jrS\4S! jrS"rg)$UniversalDetector8 aI The ``UniversalDetector`` class underlies the ``chardet.detect`` function and coordinates all of the different charset probers. To get a ``dict`` containing an encoding and its confidence, you can simply run: .. code:: u = UniversalDetector() u.feed(some_bytes) u.close() detected = u.result g?s [-]s (|~{)s [-]zWindows-1252zWindows-1250zWindows-1251zWindows-1256zWindows-1253zWindows-1255zWindows-1254zWindows-1257) iso-8859-1z iso-8859-2z iso-8859-5z iso-8859-6z iso-8859-7z iso-8859-8 iso-8859-9ziso-8859-13zISO-8859-11GB18030CP949UTF-16)asciir ztis-620r gb2312zeuc-krzutf-16leFlang_filtershould_rename_legacyreturnNc S U l S U l / U l S SS S.U l SU l SU l [ R U l SU l Xl [ R " [ 5 U l SU l X l U R# 5 g )N encoding confidencelanguageF )_esc_charset_prober_utf1632_prober_charset_probersresultdone _got_datar PURE_ASCII_input_state _last_charr logging getLogger__name__logger_has_win_bytesr reset)selfr r s ڗ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/chardet/universaldetector.py__init__UniversalDetector.__init__d s @D 8<57# &11&''1#$8! r&