Şuanki Dizin: /proc/self/root/lib64/python3.9/encodings/__pycache__/ |
Şuanki Dosya : //proc/self/root/lib64/python3.9/encodings/__pycache__/utf_8_sig.cpython-39.pyc |
a �DOg%�@stdZddlZddd�Zddd�ZGdd �d ej�ZGd d�dej�ZGdd �d ej�ZGdd�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�strictcCstjt�||�dt|�fS�Nr)�codecs�BOM_UTF8�utf_8_encode�len)�input�errors�r �+/usr/lib64/python3.9/encodings/utf_8_sig.py�encodes�rcCsDd}|dd�tjkr&|dd�}d}t�||d�\}}|||fS)Nr�T)rr�utf_8_decode)rr �prefix�output�consumedr r r�decodesrc@s8eZdZddd�Zddd�Zdd�Zd d �Zdd�Zd S)�IncrementalEncoderrcCstj�||�d|_dS�N�)rr�__init__�first��selfr r r rrszIncrementalEncoder.__init__FcCs:|jr$d|_tjt�||j�dSt�||j�dSdSr)rrrrr )rr�finalr r rrs�zIncrementalEncoder.encodecCstj�|�d|_dSr)rr�resetr�rr r rr'szIncrementalEncoder.resetcCs|jS�N�rrr r r�getstate+szIncrementalEncoder.getstatecCs ||_dSrr�r�stater r r�setstate.szIncrementalEncoder.setstateN)r)F)�__name__� __module__�__qualname__rrrrr"r r r rrs rc@s6eZdZd dd�Zdd�Zdd�Zdd �Zd d�ZdS)�IncrementalDecoderrcCstj�||�d|_dSr)r�BufferedIncrementalDecoderrrrr r rr2szIncrementalDecoder.__init__cCsv|jrht|�dkr*tj�|�r"dSd|_n>d|_|dd�tjkrht�|dd�||�\}}||dfSt�|||�S)Nr ��rr)rrrr� startswithr)rrr rrrr r r�_buffer_decode6s�z!IncrementalDecoder._buffer_decodecCstj�|�d|_dSr)rr'rrrr r rrGszIncrementalDecoder.resetcCstj�|�}|d|jfSr)rr'rrr r r rrKszIncrementalDecoder.getstatecCstj�||�|d|_dSr)rr'r"rr r r rr"PszIncrementalDecoder.setstateN)r)r#r$r%rr+rrr"r r r rr&1s r&c@seZdZdd�Zddd�ZdS)�StreamWritercCs,tj�|�z|`Wnty&Yn0dSr)rr,rr�AttributeErrorrr r rrVs zStreamWriter.resetrcCstj|_t||�Sr)rrr)rrr r r rr]szStreamWriter.encodeN)r)r#r$r%rrr r r rr,Usr,c@seZdZdd�Zddd�ZdS)�StreamReadercCs,tj�|�z|`Wnty&Yn0dSr)rr.rrr-rr r rrbs zStreamReader.resetrcCspt|�dkrtj�|�r\dSn>|dd�tjkr\tj|_t�|dd�|�\}}||dfStj|_t�||�S)Nr r()rrrr*rr)rrr rrr r rriszStreamReader.decodeN)r)r#r$r%rrr r r rr.asr.c Cstjdttttttd�S)Nz utf-8-sig)�namerr�incrementalencoder�incrementaldecoder�streamreader�streamwriter)r� CodecInforrrr&r.r,r r r r�getregentryys�r5)r)r) �__doc__rrrrr'r&r,r.r5r r r r�<module>s $
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4