![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3.10/encodings/__pycache__/ |
o �*�g% � @ 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.10/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 � t j�| |� d| _d S �N� )r r �__init__�first��selfr r r r r � zIncrementalEncoder.__init__Fc C s6 | j rd| _ tjt�|| j�d S t�|| j�d S r )r r r r r )r r �finalr r r r s �zIncrementalEncoder.encodec C � t j�| � d| _d S r )r r �resetr �r r r r r '