%PDF- %PDF-
Mini Shell

Mini Shell

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

�

Ϫ�f���X�dZddgZddlZddlZddlmZGd�de�ZGd�de�Zy)z/
Testing helpers related to the module system.
�	NoReactor�AlternateReactor�N)�SetAsideModulec�"�eZdZdZd�Zd�Zd�Zy)rzc
    Context manager that uninstalls the reactor, if any, and then restores it
    afterwards.
    c�0�tj|d�y�Nztwisted.internet.reactor)r�__init__��selfs �E/usr/lib/python3/dist-packages/twisted/internet/test/modulehelpers.pyr	zNoReactor.__init__s������&@�A�c�l�tj|�d|jvrtj`yyr)r�	__enter__�modules�twisted�internet�reactorr
s rrzNoReactor.__enter__s-��� � ��&�%����5�� � �(�6r
c���tj||||�|jjdd�}|�|tj
_y	tj
`y#t$rYywxYwr)r�__exit__r�getrrr�AttributeError)r�excType�excValue�	tracebackrs     rrzNoReactor.__exit__sf������g�x��C��,�,�"�"�#=�t�D����'.�G���$�
��$�$�,��!�
��
�s�A�	A+�*A+N)�__name__�
__module__�__qualname__�__doc__r	rr�r
rrrs���
B�)�
r
c��eZdZdZd�Zd�Zy)rzd
    A context manager which temporarily installs a different object as the
    global reactor.
    c�<�tj|�||_y)zN
        @param reactor: Any object to install as the global reactor.
        N)rr	�	alternate)rrs  rr	zAlternateReactor.__init__3s��	���4� � ��r
c��tj|�|jtj_|jtjd<yr)rrr"rrr�sysrr
s rrzAlternateReactor.__enter__:s5�����D�!�#'�>�>���� �26�.�.����.�/r
N)rrrrr	rrr
rrr-s���
!�Ar
)	r�__all__r$�twisted.internetr�twisted.test.test_twistedrrrrr
r�<module>r(s:���
�*�
+��
��4����8A�y�Ar

Zerion Mini Shell 1.0