관리-도구
편집 파일: escprober.cpython-35.pyc
��Ren � @ sx d d l m Z d d l m Z d d l m Z m Z m Z d d l m Z m Z m Z m Z Gd d � d e � Z d S)� )� CharSetProber)�CodingStateMachine)�LanguageFilter�ProbingState�MachineState)�HZ_SM_MODEL�ISO2022CN_SM_MODEL�ISO2022JP_SM_MODEL�ISO2022KR_SM_MODELc sy e Z d Z d Z d � f d d � Z � f d d � Z e d d � � Z e d d � � Z d d � Z d d � Z � S)�EscCharSetProberz� This CharSetProber uses a "code scheme" approach for detecting encodings, whereby easily recognizable escape or shift sequences are relied on to identify these encodings. Nc s� t t | � j d | � g | _ | j t j @r^ | j j t t � � | j j t t � � | j t j @r� | j j t t � � | j t j @r� | j j t t � � d | _ d | _ d | _ d | _ | j � d S)N�lang_filter)�superr �__init__� coding_smr r �CHINESE_SIMPLIFIED�appendr r r �JAPANESEr �KOREANr �active_sm_count�_detected_charset�_detected_language�_state�reset)�selfr )� __class__� ��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/chardet/escprober.pyr * s zEscCharSetProber.__init__c sk t t | � j � x- | j D]"