ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/
Upload File :
Current File : //proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/escprober.pyo

�
Bu�_c@sxddlmZddlmZddlmZmZmZddlm	Z	m
Z
mZmZdefd��YZ
dS(i(t
CharSetProber(tCodingStateMachine(tLanguageFiltertProbingStatetMachineState(tHZ_SM_MODELtISO2022CN_SM_MODELtISO2022JP_SM_MODELtISO2022KR_SM_MODELtEscCharSetProbercBsSeZdZdd�Zd�Zed��Zed��Zd�Z	d�Z
RS(s�
    This CharSetProber uses a "code scheme" approach for detecting encodings,
    whereby easily recognizable escape or shift sequences are relied on to
    identify these encodings.
    cCs�tt|�jd|�g|_|jtj@ra|jjtt	��|jjtt
��n|jtj@r�|jjtt��n|jtj
@r�|jjtt��nd|_d|_d|_d|_|j�dS(Ntlang_filter(tsuperR	t__init__t	coding_smR
RtCHINESE_SIMPLIFIEDtappendRRRtJAPANESERtKOREANRtNonetactive_sm_countt_detected_charsett_detected_languaget_statetreset(tselfR
((sN/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/escprober.pyR*s					cCsntt|�j�x0|jD]%}|s/qnt|_|j�qWt|j�|_d|_	d|_
dS(N(RR	RR
tTruetactivetlenRRRR(RR
((sN/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/escprober.pyR:s		cCs|jS(N(R(R((sN/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/escprober.pytcharset_nameEscCs|jS(N(R(R((sN/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/escprober.pytlanguageIscCs|jr
dSdSdS(Ng�G�z��?g(R(R((sN/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/escprober.pytget_confidenceMs	cCs�x�|D]�}x�|jD]�}|s|jr4qn|j|�}|tjkr�t|_|jd8_|jdkr�tj|_	|j
Sq|tjkrtj|_	|j
�|_|j|_|j
SqWqW|j
S(Nii(R
Rt
next_stateRtERRORtFalseRRtNOT_MERtstatetITS_MEtFOUND_ITtget_coding_state_machineRRR(Rtbyte_strtcR
tcoding_state((sN/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/escprober.pytfeedSs"
	
N(t__name__t
__module__t__doc__RRRtpropertyRRRR*(((sN/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/escprober.pyR	#s		N(t
charsetproberRtcodingstatemachineRtenumsRRRtescsmRRRRR	(((sN/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/chardet/escprober.pyt<module>s"

Zerion Mini Shell 1.0