| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/charset_normalizer/__pycache__/ |
Upload File : |
�
�ct � �n � d dl mZmZmZ ddlmZ ddlmZ dedee eee e
f f fd�ZdS ) � )�Dict�Optional�Union� )�
from_bytes)�CHARDET_CORRESPONDENCE�byte_str�returnc �� � t | t t f� � s/t d� t | � � � � � � �t | t � � rt | � � } t
| � � � � � }|�|j nd}|�|j dk r|j nd}|�
d|j
z
nd}|�|dk r|j r|dz
}|t vr|nt | ||d�S ) a�
chardet legacy method
Detect the encoding of the given byte string. It should be mostly backward-compatible.
Encoding name will match Chardet own writing whenever possible. (Not on encoding name unsupported by it)
This function is deprecated and should be used to migrate your project easily, consult the documentation for
further information. Not planned for removal.
:param byte_str: The byte sequence to examine.
z4Expected object of type bytes or bytearray, got: {0}N�Unknown� g �?�utf_8�_sig)�encoding�language�
confidence)
�
isinstance� bytearray�bytes� TypeError�format�typer �bestr r �chaos�bomr )r �rr r r s �;/usr/lib/python3/dist-packages/charset_normalizer/legacy.py�detectr s � � �h��E� 2�3�3�
��
��&��h���(�(�
�
�
�
�(�I�&�&� #���?�?���8���!�!�#�#�A��]�q�z�z��H��]�q�z�Y�/F�/F�q�z�z�B�H�"#�-��q�w���T�J� �}��W�,�,���,��F��� �1�1�1� �H�
#�H�
-�� �� � � N)�typingr r r �apir �constantr r �str�floatr � r r �<module>r&