https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/jeepney/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/jeepney/__pycache__/routing.cpython-310.pyc
o

���`�@s:ddlmZddlmZmZddlmZGdd�d�ZdS)�)�warn�)�MessageType�HeaderFields)�DBusErrorResponsec@sLeZdZdZddd�Zedd��Zejdd��Zdd	�Zd
d�Z	dd
�Z
dS)�Routera[Routing for messages coming back to a client application.
    
    :param handle_factory: Constructor for an object like asyncio.Future,
        with methods *set_result* and *set_exception*. Outgoing method call
        messages will get a handle associated with them.
    :param on_unhandled: Callback for messages not otherwise dispatched.
    NcCs"||_||_d|_i|_i|_dS)Nr)�handle_factory�
_on_unhandled�outgoing_serial�awaiting_reply�signal_callbacks)�selfr�on_unhandled�r�1/usr/lib/python3/dist-packages/jeepney/routing.py�__init__s

zRouter.__init__cCs|jS�N)r	)r
rrrrszRouter.on_unhandledcCstddd�||_dS)NzeSetting on_unhandled is deprecated. Please use the filter() method or simple receive() calls instead.���
stacklevel)rr	)r
�valuerrrrs�
cCsD|jd7_|j|j_|jjtjur |��|j|jj<}|SdS)zNSet the serial number in the message & make a handle if a method call
        rN)r
�header�serial�message_typer�method_callrr)r
�msg�handlerrr�outgoings
�zRouter.outgoingcCs tddd�||j|||f<dS)z%Add a callback for a signal.
        zQThe subscribe_signal() method is deprecated. Please use the filter() API instead.rrN)rr)r
�callback�path�	interface�memberrrr�subscribe_signal)s�zRouter.subscribe_signalcCs�|j}|jtjur2|j�tjd�|j�tjd�|j�tj	d�f}|j
�|d�}|dur2||j�dS|j�tjd�}|j
�|d�}|durb|jtjurS|�|j�dS|jtjurb|�t|��dS|jrl|�|�dSdS)z#Route an incoming message.
        N���)rrr�signal�fields�getrrr r!r�body�reply_serialr�pop�
method_return�
set_result�error�
set_exceptionrr)r
r�hdr�key�cbr(�reply_handlerrr�incoming0s,�
�zRouter.incomingr)�__name__�
__module__�__qualname__�__doc__r�propertyr�setterrr"r2rrrrrs



rN)�warningsr�	low_levelrr�wrappersrrrrrr�<module>s

https://t.me/RX1948 - 2025