https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/internet/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/internet/__pycache__/_baseprocess.cpython-310.pyc
o

�b��@sVdZddlmZddlmZddlmZddlmZddl	m
Z
dZGdd	�d	�Zd
S)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@sVeZdZUdZeeed<dZeeed<dZdZ	dd�Z
dd�Zd	d
�Zdd�Z
dS)
�BaseProcessN�pid�statusrcCs
||_dS)N)�proto)�self�protocol�r
�?/usr/lib/python3/dist-packages/twisted/internet/_baseprocess.py�__init__s
zBaseProcess.__init__cCspt�}t|jd|�}||urt�tt|jj�ftdd�dSz	|t|��WdSt	y7t
dd�YdSw)N�
processExitedr)�
stacklevelz!unexpected error in processExited)�object�getattrr
r�_missingProcessExitedr�	__class__�DeprecationWarningr�
BaseExceptionr)r�reason�defaultrr
r
r�_callProcessExited s
��zBaseProcess._callProcessExitedcCs6||_|jd7_d|_|�|�|��|��dS)z;
        This is called when the child terminates.
        �N)r	�lostProcessrr�
_getReason�maybeCallProcessEnded)rr	r
r
r�processEnded/s
zBaseProcess.processEndedcCsZ|jdur+|�|j�}|j}d|_z
|�t|��WdSty*tdd�YdSwdS)zD
        Call processEnded on protocol after final cleanup.
        Nz unexpected error in processEnded)r
rr	rrrr)rrr
r
r
rr9s
��z!BaseProcess.maybeCallProcessEnded)�__name__�
__module__�__qualname__rr�int�__annotations__r	rr
rrrrr
r
r
rrs

rN)
�__doc__�typingr�twisted.python.deprecater�twisted.python.failurer�twisted.python.logr�twisted.python.reflectrrrr
r
r
r�<module>s�

https://t.me/RX1948 - 2025