Your IP : 3.145.79.214
U
e5d�k � @ sx d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ ej dkrTd dl
mZ ndZd dl
Z
d dl
mZmZmZmZ d ddhZee d�r�e�e j� e�e j� d ZeZeed
�p�ejjZd6dd�Zdd� Zz
e
jZW n ek
� r� eZY nX G dd� d�Z G dd� d�Z!z
e
j"Z"W n( ek
�rD G dd� de#e$�Z"Y nX G dd� dej%d�Z&e
j&�'e&� G dd� de&�Z(e
j(�'e(� d dl)m*Z* e(�'e*� G dd� de&�Z+e
j+�'e+� G d d!� d!e+�Z,G d"d#� d#e+�Z-G d$d%� d%e,�Z.G d&d'� d'e,�Z/G d(d)� d)e+�Z0G d*d+� d+e/e.�Z1G d,d-� d-e(�Z*G d.d/� d/e&�Z2e
j2�'e2� G d0d1� d1ej3�Z4G d2d3� d3e2�Z5G d4d5� d5e5�Z6dS )7� N)�
allocate_lock> �win32�cygwin)�setmode)�__all__�SEEK_SET�SEEK_CUR�SEEK_END� � � SEEK_HOLEi Zgettotalrefcount�r���Tc C s� t | t�st�| �} t | tttf�s0td| ��t |t�sFtd| ��t |t�s\td| ��|d k rzt |t�sztd| ��|d k r�t |t�s�td| ��t|�}|td� s�t|�t|�kr�t d| ��d|k} d|k}
d |k}d
|k}d|k}
d|k}d
|k}d|k�rD| �s"|�s"|�s"|
�r*t d��dd l
}|�dtd� d}
|�rX|�rXt d��| |
| | dk�rvt d��| �s�|
�s�|�s�|�s�t d��|�r�|d k �r�t d��|�r�|d k �r�t d��|�r�|d k �r�t d��|�r|dk�rdd l
}|�dt
d� t| | �rd�pd|
�r"d�p$d |�r2d �p4d |�rBd
�pDd |
�rRd�pTd ||d�}|}�z$d}|dk�s�|dk �r�|�� �r�d}d}|dk �r�t}zt�|�� �j}W n ttfk
�r� Y nX |dk�r�|}|dk �r�t d ��|dk�r|�r|W S t d!��|
�r t||�}n<| �s2|�s2|�r>t||�}n|
�rPt||�}nt d"| ��|}|�rl|W S t|||||�}|}||_|W S |�� � Y nX d S )#Nzinvalid file: %rzinvalid mode: %rzinvalid buffering: %r�invalid encoding: %r�invalid errors: %rzaxrwb+tU�xr
�w�a�+�t�b�Uz4mode U cannot be combined with 'x', 'w', 'a', or '+'r z'U' mode is deprecatedr Tz'can't have text and binary mode at oncer
z)can't have read/write/append mode at oncez/must have exactly one of read/write/append modez-binary mode doesn't take an encoding argumentz+binary mode doesn't take an errors argumentz+binary mode doesn't take a newline argumentzaline buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used� )�openerFr zinvalid buffering sizezcan't have unbuffered text I/Ozunknown mode: %r)�
isinstance�int�os�fspath�str�bytes� TypeError�set�len�
ValueError�warnings�warn�DeprecationWarning�RuntimeWarning�FileIO�isatty�DEFAULT_BUFFER_SIZE�fstat�fileno�
st_blksize�OSError�AttributeError�BufferedRandom�BufferedWriter�BufferedReader�
TextIOWrapper�mode�close)�filer4 � buffering�encoding�errors�newline�closefdr ZmodesZcreatingZreadingZwritingZ appendingZupdating�textZbinaryr$ �raw�result�line_bufferingZbs�buffer� rA �/usr/lib64/python3.8/_pyio.py�open) s� {
� ����� �
rC c C s dd l }|�dtd� t| d�S )Nr z(_pyio.open_code() may not be using hooksr �rb)r$ r% r'