PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` 3 X@s(ddlZddlmZGdddeZdS)N) MachineStatec@sDeZdZdZddZddZddZdd Zd d Ze d d 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. cCs0||_d|_d|_d|_tjt|_|jdS)Nr) _model_curr_byte_pos_curr_char_len _curr_stateloggingZ getLogger__name__Zloggerreset)selfZsmr (/usr/lib/python3.6/codingstatemachine.py__init__7s  zCodingStateMachine.__init__cCs tj|_dS)N)rSTARTr)r r r rr ?szCodingStateMachine.resetcCsh|jd|}|jtjkr0d|_|jd||_|j|jd|}|jd||_|jd7_|jS)NZ class_tablerZchar_len_tableZ class_factorZ state_tabler)rrrrrr)r cZ byte_classZ curr_stater r r next_stateBs zCodingStateMachine.next_statecCs|jS)N)r)r r r rget_current_charlenPsz&CodingStateMachine.get_current_charlencCs |jdS)Nname)r)r r r rget_coding_state_machineSsz+CodingStateMachine.get_coding_state_machinecCs |jdS)Nlanguage)r)r r r rrVszCodingStateMachine.languageN) r __module__ __qualname____doc__rr rrrpropertyrr r r rr!sr)r Zenumsrobjectrr r r rs