File: //usr/lib/python3/dist-packages/chardet/__pycache__/__init__.cpython-312.pyc
�
�n�_� � �@ � d dl mZ d dlmZ d dlmZmZ g d�Zd� Zd� Z y)� )�UniversalDetector)�
InputState)�__version__�VERSION)r �detect�
detect_allr r c �� � t | t � s>t | t � s#t dj t | � � � �t | � } t
� }|j | � |j � 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� bytearray�bytes� TypeError�format�typer �feed�close)�byte_str�detectors �2/usr/lib/python3/dist-packages/chardet/__init__.pyr r se � � �h� �*��(�E�*�� !�!'���X��!7�9�
9� !��*�H� �"�H��M�M�(���>�>��� c � � t | t � s>t | t � s#t dj t | � � � �t | � } t
� }|j | � |j � |j t j k( r�g }|j D ]� }|j � |j kD s�!|j }|j j! � }|j# d� r(|j$ r|j&