404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.116.27.233: ~ $
3

m�da8
�@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}NZUnknown�g�?�utf_8Z_sig)�encoding�language�
confidence)
�
isinstance�	bytearray�bytes�	TypeError�format�typerZbestrrZchaosZbomr
)r
�rrrr�r�/usr/lib/python3.6/legacy.py�detect	s 

rc@seZdZdS)�CharsetNormalizerMatchN)�__name__�
__module__�__qualname__rrrrr0src@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)rr r!�staticmethodrrrr	rrrrr"4s			r"c@seZdZdS)�CharsetDetectorN)rr r!rrrrr)Zsr)c@seZdZdS)�
CharsetDoctorN)rr r!rrrrr*^sr*)r#ZtypingrrrZapirrrr	Zconstantr
Zmodelsrrr�str�floatrrr"r)r*rrrr�<module>s$'&

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 1.54 KB 0644
__init__.cpython-36.pyc File 1.54 KB 0644
api.cpython-36.opt-1.pyc File 9.35 KB 0644
api.cpython-36.pyc File 9.35 KB 0644
cd.cpython-36.opt-1.pyc File 7.96 KB 0644
cd.cpython-36.pyc File 7.96 KB 0644
constant.cpython-36.opt-1.pyc File 16.51 KB 0644
constant.cpython-36.pyc File 16.51 KB 0644
legacy.cpython-36.opt-1.pyc File 3.18 KB 0644
legacy.cpython-36.pyc File 3.18 KB 0644
md.cpython-36.opt-1.pyc File 14.4 KB 0644
md.cpython-36.pyc File 14.4 KB 0644
models.cpython-36.opt-1.pyc File 12.84 KB 0644
models.cpython-36.pyc File 12.84 KB 0644
utils.cpython-36.opt-1.pyc File 7.32 KB 0644
utils.cpython-36.pyc File 7.32 KB 0644
version.cpython-36.opt-1.pyc File 197 B 0644
version.cpython-36.pyc File 197 B 0644