GIF94;
| Path : /usr/lib/python3/dist-packages/chardet/__pycache__/ |
| Current File : //usr/lib/python3/dist-packages/chardet/__pycache__/__init__.cpython-313.pyc |
�
��g� �
� � S SK JrJr SSKJr SSKJr SSKJr SSK J
r
SSKJr SSK
JrJr / S Qr SS
\\\4 S\S\
4S
jjr SS
\\\4 S\S\S\\
4S jjrg)� )�List�Union� )�CharSetGroupProber)�
CharSetProber)�
InputState)�
ResultDict)�UniversalDetector)�VERSION�__version__)r
�detect�
detect_allr r �byte_str�should_rename_legacy�returnc �� � [ U [ 5 ( d7 [ U [ 5 ( d [ S[ U 5 35 e[ U 5 n [ US9nUR
U 5 UR 5 $ )a:
Detect the encoding of the given byte string.
:param byte_str: The byte sequence to examine.
:type byte_str: ``bytes`` or ``bytearray``
:param should_rename_legacy: Should we rename legacy encodings
to their more modern equivalents?
:type should_rename_legacy: ``bool``
�1Expected object of type bytes or bytearray, got: �r )�
isinstance� bytearray�bytes� TypeError�typer
�feed�close)r r �detectors �2/usr/lib/python3/dist-packages/chardet/__init__.pyr
r
sj � � �h� �*�*��(�E�*�*��C�D��N�CS�T��
� �X�&�� �6J�K�H��M�M�(���>�>��� �ignore_thresholdc �& � [ U [ 5 ( d7 [ U [ 5 ( d [ S[ U 5 35 e[ U 5 n [ US9nUR
U 5 UR 5 UR [ R :X Gap / n/ nUR HM n[ U[ 5 ( a$ UR S UR 5 5 M<