Graybyt3 Was Here
Linux cloud.locucionar.com 3.10.0-1160.81.1.el7.x86_64 #1 SMP Fri Dec 16 17:29:43 UTC 2022 x86_64
Apache
91.191.211.241
/
opt
/
imunify360
/
venv
/
lib64
/
python3.11
/
site-packages
/
charset_normalizer
/
__pycache__
[ HOME ]
Exec
Submit
legacy.cpython-311.pyc
� L�Fh8 � � � 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.5.3/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"