https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /usr/lib/python3/dist-packages/chardet/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python3/dist-packages/chardet/__pycache__/__init__.cpython-310.pyc
o

�n�_��@sDddlmZddlmZddlmZmZgd�Zdd�Zdd�Z	d	S)
�)�UniversalDetector)�
InputState)�__version__�VERSION)r�detect�
detect_allrrcCsFt|t�st|t�std�t|����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�	bytearray�bytes�	TypeError�format�typer�feed�close)�byte_str�detector�r�2/usr/lib/python3/dist-packages/chardet/__init__.pyrs


�
rcCs�t|t�st|t�std�t|����t|�}t�}|�|�|��|j	t
jkrig}|jD],}|�
�|jkrZ|j}|j��}|�d�rN|jrN|j�||�}|�||�
�|jd��q.t|�dkrit|dd�d�S|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``
    rziso-8859)�encoding�
confidence�language�cSs
|dS)Nrr)�resultrrr�<lambda>Qs
zdetect_all.<locals>.<lambda>)�key)r	r
rrr
rrrr�_input_stater�	HIGH_BYTE�_charset_probers�get_confidence�MINIMUM_THRESHOLD�charset_name�lower�
startswith�_has_win_bytes�ISO_WIN_MAP�get�appendr�len�sortedr)rr�results�proberr!�lower_charset_namerrrr-s:


�



���rN)
�universaldetectorr�enumsr�versionrr�__all__rrrrrr�<module>s

https://t.me/RX1948 - 2025