관리-도구
편집 파일: escprober.cpython-38.pyc
U ʗRe � @ sX d dl mZ d dlmZ d dlmZmZmZ d dlm Z m Z mZmZ G dd� de�Z dS )� )� CharSetProber)�CodingStateMachine)�LanguageFilter�MachineState�ProbingState)�HZ_SM_MODEL�ISO2022CN_SM_MODEL�ISO2022JP_SM_MODEL�ISO2022KR_SM_MODELc sV e Zd ZdZd� fdd� Z� fdd�Zedd� �Zed d � �Zdd� Z d d� Z � ZS )�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 � j|d� g | _| jtj@ r@| j�tt�� | j�tt �� | jtj @ r\| j�tt�� | jtj@ rx| j�tt �� d | _d | _d | _d | _| �� d S )N)�lang_filter)�super�__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-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/chardet/escprober.pyr . s zEscCharSetProber.__init__c sF t � �� | jD ]}|sqd|_|�� qt| j�| _d | _d | _d S )NT)r r r �active�lenr r r )r r r r r r >