Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib64/python3.7/asyncio/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/asyncio/__pycache__/windows_utils.cpython-37.opt-2.pyc

B

YI~d��@s�ddlZejdkred��ddlZddlZddlZddlZddlZddlZddl	Z	dZ
dZejZej
Z
e��Zdded�d	d
�ZGdd�d�ZGd
d�dej�ZdS)�N�win32z
win32 only)�pipe�Popen�PIPE�
PipeHandlei F)TT)�duplex�
overlapped�bufsizec
Cs"tjd�t��tt��d�}|r>tj}tj	tj
B}||}}ntj}tj
}d|}}|tjO}|drp|tj
O}|dr�tj
}nd}d}	}
yZt�||tjd||tjtj�}	t�||dtjtj|tj�}
tj|	dd�}|�d�|	|
fS|	dk	�rt�|	�|
dk	�rt�|
��YnXdS)Nz\\.\pipe\python-pipe-{:d}-{:d}-)�prefixr�T)r)�tempfileZmktemp�format�os�getpid�next�
_mmap_counter�_winapiZPIPE_ACCESS_DUPLEXZGENERIC_READZ
GENERIC_WRITEZPIPE_ACCESS_INBOUNDZFILE_FLAG_FIRST_PIPE_INSTANCEZFILE_FLAG_OVERLAPPEDZCreateNamedPipeZ	PIPE_WAITZNMPWAIT_WAIT_FOREVERZNULLZ
CreateFileZ
OPEN_EXISTINGZConnectNamedPipeZGetOverlappedResult�CloseHandle)rrr	ZaddressZopenmode�accessZobsizeZibsizeZflags_and_attribsZh1Zh2Zov�r�:/opt/alt/python37/lib64/python3.7/asyncio/windows_utils.pyr sB








rc@sXeZdZdd�Zdd�Zedd��Zdd�Zej	d	�d
d�Z
dd
�Zdd�Zdd�Z
dS)rcCs
||_dS)N)�_handle)�self�handlerrr�__init__VszPipeHandle.__init__cCs2|jdk	rd|j��}nd}d|jj�d|�d�S)Nzhandle=�closed�<� �>)r�	__class__�__name__)rrrrr�__repr__Ys
zPipeHandle.__repr__cCs|jS)N)r)rrrrr`szPipeHandle.handlecCs|jdkrtd��|jS)NzI/O operation on closed pipe)r�
ValueError)rrrr�filenods
zPipeHandle.fileno)rcCs|jdk	r||j�d|_dS)N)r)rrrrr�closeis

zPipeHandle.closecCs,|jdk	r(tjd|��t|d�|��dS)Nz	unclosed )�source)r�warnings�warn�ResourceWarningr$)rrrr�__del__ns
zPipeHandle.__del__cCs|S)Nr)rrrr�	__enter__tszPipeHandle.__enter__cCs|��dS)N)r$)r�t�v�tbrrr�__exit__wszPipeHandle.__exit__N)r �
__module__�__qualname__rr!�propertyrr#rrr$r)r*r.rrrrrQsrcseZdZd�fdd�	Z�ZS)rNc	s|d}}}d}	}
}|tkr@tddd�\}}	t�|tj�}n|}|tkrhtdd�\}
}
t�|
d�}n|}|tkr�tdd�\}}t�|d�}n|tkr�|}n|}z�y t�j|f|||d�|��Wn4x$|	|
|fD]}|dk	r�t	�
|�q�W�Yn>X|	dk	�rt|	�|_|
dk	�r"t|
�|_
|dk	�r6t|�|_Wd|tk�rNt�|�|tk�rbt�|�|tk�rvt�|�XdS)N)FTT)rr)TF)rr)�stdin�stdout�stderr)rr�msvcrtZopen_osfhandler�O_RDONLY�STDOUT�superrrrrr2r3r4r$)r�argsr2r3r4�kwdsZ	stdin_rfdZ
stdout_wfdZ
stderr_wfdZstdin_whZ	stdout_rhZ	stderr_rhZstdin_rhZ	stdout_whZ	stderr_wh�h)rrrr�sH









zPopen.__init__)NNN)r r/r0r�
__classcell__rr)rrr~sr)�sys�platform�ImportErrorr�	itertoolsr5r�
subprocessrr&�__all__ZBUFSIZErr7�countrrrrrrrr�<module>s"
1-

Hacked By AnonymousFox1.0, Coded By AnonymousFox