관리-도구
편집 파일: models.cpython-37.pyc
B �b�3 � @ s� d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z d dlmZm Z mZmZmZmZmZ dd lmZmZ dd lmZ ddlmZmZmZ G dd � d �ZG dd� d�Zeeef Z ee Z!G dd� d�Z"dS )� N)�Counter)�aliases)�sha256)�dumps)�sub)�Any�Dict�Iterator�List�Optional�Tuple�Union� )�NOT_PRINTABLE_PATTERN�TOO_BIG_SEQUENCE)� mess_ratio)� iana_name�is_multi_byte_encoding� unicode_rangec @ s e Zd ZdBeeeedee d�dd�Ze ed�dd�Z e ed�d d �Zeed�dd ��Z eed�dd��Zeed�dd��Zeed�dd��Zed�dd�Zed�dd�Zd dd�dd�Zeed�dd��Zeee d�dd��Zeed�dd��Zeed�d d!��Zeee d�d"d#��Zeed�d$d%��Zeed�d&d'��Zeed�d(d)��Zeed�d*d+��Zeed�d,d-��Zeed�d.d/��Z eed d�d0d1��Z!eed�d2d3��Z"eee d�d4d5��Z#eee d�d6d7��Z$d d�d8d9�Z%d d�d:d;�Z&dCeed=�d>d?�Z'eed�d@dA��Z(dS )D�CharsetMatchN�CoherenceMatches)�payload�guessed_encoding�mean_mess_ratio�has_sig_or_bom� languages�decoded_payloadc C sF || _ || _|| _|| _|| _d | _g | _d| _d | _d | _ || _ d S )Ng )�_payload� _encoding�_mean_mess_ratio� _languages�_has_sig_or_bom�_unicode_ranges�_leavesZ_mean_coherence_ratio�_output_payload�_output_encoding�_string)�selfr r r r r r � r( �J/opt/alt/python37/lib/python3.7/site-packages/charset_normalizer/models.py�__init__ s zCharsetMatch.__init__)�other�returnc C s>