ok

Mini Shell

Direktori : /opt/alt/python38/lib64/python3.8/site-packages/yaml/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/site-packages/yaml/__pycache__/reader.cpython-38.pyc

U

b�`��@sLddgZddlmZmZddlZddlZGdd�de�ZGdd�de�ZdS)�Reader�ReaderError�)�	YAMLError�Mark�Nc@seZdZdd�Zdd�ZdS)rcCs"||_||_||_||_||_dS�N)�name�	character�position�encoding�reason)�selfrr
r	rr�r�>/opt/alt/python38/lib64/python3.8/site-packages/yaml/reader.py�__init__s
zReaderError.__init__cCsHt|jt�r,d|jt|j�|j|j|jfSd|j|j|j|jfSdS)Nz>'%s' codec can't decode byte #x%02x: %s
  in "%s", position %dz8unacceptable character #x%04x: %s
  in "%s", position %d)�
isinstancer	�bytesr�ordrrr
�r
rrr�__str__!s����zReaderError.__str__N)�__name__�
__module__�__qualname__rrrrrrrsc@sfeZdZdd�Zddd�Zddd�Zdd	d
�Zdd�Zd
d�Ze	�
d�Zdd�Zdd�Z
ddd�ZdS)rcCs�d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_t|t
�rnd|_|�|�|d|_nHt|t�r�d|_||_|��n(||_t|dd�|_d	|_d|_|��dS)
NrT�z<unicode string>�z
<byte string>rz<file>F)r�stream�stream_pointer�eof�buffer�pointer�
raw_buffer�
raw_decoder�index�line�columnr�str�check_printabler�determine_encoding�getattr)r
rrrrr;s2



zReader.__init__rcCsJz|j|j|WStk
rD|�|d�|j|j|YSXdS)Nr)rr�
IndexError�update)r
r"rrr�peekWs
zReader.peekrcCs4|j|t|j�kr|�|�|j|j|j|�Sr)r�lenrr*)r
�lengthrrr�prefix^s
z
Reader.prefixcCs�|j|dt|j�kr&|�|d�|r�|j|j}|jd7_|jd7_|dksr|dkr�|j|jdkr�|jd7_d|_n|dkr�|jd7_|d8}q&dS)Nru	
…

�
�
ru)rr,rr*r"r#r$)r
r-Zchrrr�forwardcs ��zReader.forwardcCsF|jdkr(t|j|j|j|j|j|j�St|j|j|j|jdd�SdSr)rrrr"r#r$rrrrrr�get_markrs
��zReader.get_markcCs�|js(|jdkst|j�dkr(|��qt|jt�r~|j�tj�rRtj	|_
d|_n,|j�tj�rptj
|_
d|_ntj|_
d|_|�d�dS)N�z	utf-16-lez	utf-16-bezutf-8r)rr r,�
update_rawrr�
startswith�codecs�BOM_UTF16_LE�utf_16_le_decoder!r�BOM_UTF16_BE�utf_16_be_decode�utf_8_decoder*rrrrr'zs
zReader.determine_encodingu![^	

 -~… -퟿-�𐀀-􏿿]cCsP|j�|�}|rL|��}|jt|j�|j|��}t|j	|t
|�dd��dS)NZunicodez"special characters are not allowed)�
NON_PRINTABLE�search�groupr"r,rr�startrrr)r
�data�matchr	r
rrrr&�s�zReader.check_printablec
Cs2|jdkrdS|j|jd�|_d|_t|j�|k�r.|jsD|��|jdk	r�z|�|jd|j�\}}Wq�tk
r�}zN|j|j}|j	dk	r�|j
t|j�|j}n|j}t|j|||j
|j��W5d}~XYq�Xn|j}t|�}|�|�|j|7_|j|d�|_|jr&|jd7_d|_�q.q&dS)Nr�strictr)r rrr,rr4r!�UnicodeDecodeErrorr?rrrrrrr&)r
r-r@Z	converted�excr	r
rrrr*�s>

�

�
z
Reader.update�cCsL|j�|�}|jdkr||_n|j|7_|jt|�7_|sHd|_dS)NT)r�readr rr,r)r
�sizer@rrrr4�s
zReader.update_rawN)r)r)r)rE)rrrrr+r.r1r2r'�re�compiler<r&r*r4rrrrr-s



)	�__all__�errorrrr6rHr�objectrrrrr�<module>s

Zerion Mini Shell 1.0