Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/pip/_vendor/chardet/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/pip/_vendor/chardet/codingstatemachine.pyc

�
��abc@s6ddlZddlmZdefd��YZdS(i����Ni(tMachineStatetCodingStateMachinecBsJeZdZd�Zd�Zd�Zd�Zd�Zed��Z	RS(s�
    A state machine to verify a byte sequence for a particular encoding. For
    each byte the detector receives, it will feed that byte to every active
    state machine available, one byte at a time. The state machine changes its
    state based on its previous state and the byte it receives. There are 3
    states in a state machine that are of interest to an auto-detector:

    START state: This is the state to start with, or a legal byte sequence
                 (i.e. a valid code point) for character has been identified.

    ME state:  This indicates that the state machine identified a byte sequence
               that is specific to the charset it is designed for and that
               there is no other possible encoding which can contain this byte
               sequence. This will to lead to an immediate positive answer for
               the detector.

    ERROR state: This indicates the state machine identified an illegal byte
                 sequence for that encoding. This will lead to an immediate
                 negative answer for this encoding. Detector will exclude this
                 encoding from consideration from here on.
    cCsD||_d|_d|_d|_tjt�|_|j	�dS(Ni(
t_modelt_curr_byte_post_curr_char_lentNonet_curr_statetloggingt	getLoggert__name__tloggertreset(tselftsm((sJ/usr/lib/python2.7/site-packages/pip/_vendor/chardet/codingstatemachine.pyt__init__7s				cCstj|_dS(N(RtSTARTR(R((sJ/usr/lib/python2.7/site-packages/pip/_vendor/chardet/codingstatemachine.pyR?scCs�|jd|}|jtjkrCd|_|jd||_n|j|jd|}|jd||_|jd7_|jS(Ntclass_tableitchar_len_tabletclass_factortstate_tablei(RRRRRR(Rtct
byte_classt
curr_state((sJ/usr/lib/python2.7/site-packages/pip/_vendor/chardet/codingstatemachine.pyt
next_stateBs	cCs|jS(N(R(R((sJ/usr/lib/python2.7/site-packages/pip/_vendor/chardet/codingstatemachine.pytget_current_charlenPscCs|jdS(Ntname(R(R((sJ/usr/lib/python2.7/site-packages/pip/_vendor/chardet/codingstatemachine.pytget_coding_state_machineSscCs|jdS(Ntlanguage(R(R((sJ/usr/lib/python2.7/site-packages/pip/_vendor/chardet/codingstatemachine.pyRVs(
R	t
__module__t__doc__RRRRRtpropertyR(((sJ/usr/lib/python2.7/site-packages/pip/_vendor/chardet/codingstatemachine.pyR!s					(RtenumsRtobjectR(((sJ/usr/lib/python2.7/site-packages/pip/_vendor/chardet/codingstatemachine.pyt<module>s

Hacked By AnonymousFox1.0, Coded By AnonymousFox