/usr/lib/python3.9/site-packages/pip/_vendor/chardet/__pycache__
a [��f � @ s( d dl Z ddlmZ G dd� de�ZdS )� N� )�MachineStatec @ sD e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Ze dd � �Z dS )�CodingStateMachinea� 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. c C s0 || _ d| _d| _d | _t�t�| _| �� d S )Nr ) �_model�_curr_byte_pos�_curr_char_len�_curr_state�loggingZ getLogger�__name__�logger�reset)�selfZsm� r �J/usr/lib/python3.9/site-packages/pip/_vendor/chardet/codingstatemachine.py�__init__7 s zCodingStateMachine.__init__c C s t j| _d S �N)r �STARTr �r r r r r ? s zCodingStateMachine.resetc C sh | j d | }| jtjkr0d| _| j d | | _| j| j d | }| j d | | _| jd7 _| jS )NZclass_tabler Zchar_len_tableZclass_factorZstate_tabler )r r r r r r )r �cZ byte_classZ curr_stater r r � next_stateB s �zCodingStateMachine.next_statec C s | j S r )r r r r r �get_current_charlenP s z&CodingStateMachine.get_current_charlenc C s | j d S )N�name�r r r r r �get_coding_state_machineS s z+CodingStateMachine.get_coding_state_machinec C s | j d S )N�languager r r r r r V s zCodingStateMachine.languageN)r � __module__�__qualname__�__doc__r r r r r �propertyr r r r r r ! s r )r Zenumsr �objectr r r r r �<module> s
.
Edit
..
Edit
__init__.cpython-39.opt-1.pyc
Edit
__init__.cpython-39.pyc
Edit
big5freq.cpython-39.opt-1.pyc
Edit
big5freq.cpython-39.pyc
Edit
big5prober.cpython-39.opt-1.pyc
Edit
big5prober.cpython-39.pyc
Edit
chardistribution.cpython-39.opt-1.pyc
Edit
chardistribution.cpython-39.pyc
Edit
charsetgroupprober.cpython-39.opt-1.pyc
Edit
charsetgroupprober.cpython-39.pyc
Edit
charsetprober.cpython-39.opt-1.pyc
Edit
charsetprober.cpython-39.pyc
Edit
codingstatemachine.cpython-39.opt-1.pyc
Edit
codingstatemachine.cpython-39.pyc
Edit
compat.cpython-39.opt-1.pyc
Edit
compat.cpython-39.pyc
Edit
cp949prober.cpython-39.opt-1.pyc
Edit
cp949prober.cpython-39.pyc
Edit
enums.cpython-39.opt-1.pyc
Edit
enums.cpython-39.pyc
Edit
escprober.cpython-39.opt-1.pyc
Edit
escprober.cpython-39.pyc
Edit
escsm.cpython-39.opt-1.pyc
Edit
escsm.cpython-39.pyc
Edit
eucjpprober.cpython-39.opt-1.pyc
Edit
eucjpprober.cpython-39.pyc
Edit
euckrfreq.cpython-39.opt-1.pyc
Edit
euckrfreq.cpython-39.pyc
Edit
euckrprober.cpython-39.opt-1.pyc
Edit
euckrprober.cpython-39.pyc
Edit
euctwfreq.cpython-39.opt-1.pyc
Edit
euctwfreq.cpython-39.pyc
Edit
euctwprober.cpython-39.opt-1.pyc
Edit
euctwprober.cpython-39.pyc
Edit
gb2312freq.cpython-39.opt-1.pyc
Edit
gb2312freq.cpython-39.pyc
Edit
gb2312prober.cpython-39.opt-1.pyc
Edit
gb2312prober.cpython-39.pyc
Edit
hebrewprober.cpython-39.opt-1.pyc
Edit
hebrewprober.cpython-39.pyc
Edit
jisfreq.cpython-39.opt-1.pyc
Edit
jisfreq.cpython-39.pyc
Edit
jpcntx.cpython-39.opt-1.pyc
Edit
jpcntx.cpython-39.pyc
Edit
langbulgarianmodel.cpython-39.opt-1.pyc
Edit
langbulgarianmodel.cpython-39.pyc
Edit
langgreekmodel.cpython-39.opt-1.pyc
Edit
langgreekmodel.cpython-39.pyc
Edit
langhebrewmodel.cpython-39.opt-1.pyc
Edit
langhebrewmodel.cpython-39.pyc
Edit
langhungarianmodel.cpython-39.opt-1.pyc
Edit
langhungarianmodel.cpython-39.pyc
Edit
langrussianmodel.cpython-39.opt-1.pyc
Edit
langrussianmodel.cpython-39.pyc
Edit
langthaimodel.cpython-39.opt-1.pyc
Edit
langthaimodel.cpython-39.pyc
Edit
langturkishmodel.cpython-39.opt-1.pyc
Edit
langturkishmodel.cpython-39.pyc
Edit
latin1prober.cpython-39.opt-1.pyc
Edit
latin1prober.cpython-39.pyc
Edit
mbcharsetprober.cpython-39.opt-1.pyc
Edit
mbcharsetprober.cpython-39.pyc
Edit
mbcsgroupprober.cpython-39.opt-1.pyc
Edit
mbcsgroupprober.cpython-39.pyc
Edit
mbcssm.cpython-39.opt-1.pyc
Edit
mbcssm.cpython-39.pyc
Edit
sbcharsetprober.cpython-39.opt-1.pyc
Edit
sbcharsetprober.cpython-39.pyc
Edit
sbcsgroupprober.cpython-39.opt-1.pyc
Edit
sbcsgroupprober.cpython-39.pyc
Edit
sjisprober.cpython-39.opt-1.pyc
Edit
sjisprober.cpython-39.pyc
Edit
universaldetector.cpython-39.opt-1.pyc
Edit
universaldetector.cpython-39.pyc
Edit
utf8prober.cpython-39.opt-1.pyc
Edit
utf8prober.cpython-39.pyc
Edit
version.cpython-39.opt-1.pyc
Edit
version.cpython-39.pyc
Edit