| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/encodings/__pycache__/ |
Upload File : |
a
R d% � @ st d Z ddlZddd�Zddd�ZG dd � d ej�ZG d
d� dej�ZG dd
� d
ej�ZG dd� dej�Zdd� Z dS )a Python 'utf-8-sig' Codec
This work similar to UTF-8 with the following changes:
* On encoding/writing a UTF-8 encoded BOM will be prepended/written as the
first three bytes.
* On decoding/reading if the first three bytes are a UTF-8 encoded BOM, these
bytes will be skipped.
� N�strictc C s t jt �| |�d t| �fS �Nr )�codecs�BOM_UTF8�utf_8_encode�len)�input�errors� r
�)/usr/lib/python3.9/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 '