관리-도구
편집 파일: legacy.cpython-311.pyc
� Q�Dg8 � � � d dl Z d dlmZmZmZ ddlmZmZmZm Z ddl mZ ddlm Z mZ dedeeeeeef f fd �Z G d � de � � Z G d� d e� � Z G d� de� � Z G d� de� � ZdS )� N)�Dict�Optional�Union� )� from_bytes�from_fp� from_path� normalize)�CHARDET_CORRESPONDENCE)�CharsetMatch�CharsetMatches�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 �y/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-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� -�� �� � � c � � e Zd ZdS )�CharsetNormalizerMatchN��__name__� __module__�__qualname__� r$ r"