관리-도구
편집 파일: utf_8_sig.cpython-38.opt-2.pyc
U i�f% � @ sp d dl Z ddd�Zddd�ZG dd� de j�ZG d d � d e j�ZG dd� de j�ZG d d� de j�Zdd� ZdS )� N�strictc C s t jt �| |�d t| �fS �Nr )�codecs�BOM_UTF8�utf_8_encode�len)�input�errors� r �8/opt/alt/python38/lib64/python3.8/encodings/utf_8_sig.py�encode s �r c C sD d}| d d� t jkr&| dd � } d}t �| |d�\}}||| fS )Nr � T)r r �utf_8_decode)r r �prefix�output�consumedr r r �decode s r c @ s8 e Zd Zddd�Zddd�Zdd� Zd d � Zdd� Zd S )�IncrementalEncoderr c C s t j�| |� d| _d S �N� )r r �__init__�first��selfr r r r r s zIncrementalEncoder.__init__Fc C s: | j r$d| _ tjt�|| j�d S t�|| j�d S d S r )r r r r r )r r �finalr r r r s �zIncrementalEncoder.encodec C s t j�| � d| _d S r )r r �resetr �r r r r r '