403Webshell
Server IP : 195.114.193.97  /  Your IP : 216.73.216.125
Web Server : LiteSpeed
System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
User : sembi4241 ( 1126)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/twisted/positioning/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/twisted/positioning/test/__pycache__/receiver.cpython-310.pyc
o

�b]�@s*dZddlmZmZGdd�dej�ZdS)z
Receivers for use in tests.
�)�base�ipositioningc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�MockPositioningReceivera
    A mock positioning receiver.

    Mocks all the L{IPositioningReceiver} methods with stubs that don't do
    anything but register that they were called.

    @ivar called: A mapping of names of callbacks that have been called to
        C{True}.
    @type called: C{dict}
    cCs"|��tjD]}|�|�qdS)N)�clearr�IPositioningReceiver�_addCallback)�self�
methodName�r
�C/usr/lib/python3/dist-packages/twisted/positioning/test/receiver.py�__init__s
�z MockPositioningReceiver.__init__cCs
i|_dS)zt
        Forget all the methods that have been called on this receiver, by
        emptying C{self.called}.
        N��called)rr
r
rrs
zMockPositioningReceiver.clearcs��fdd�}t��|�dS)zq
        Adds a callback of the given name, setting C{self.called[name]} to
        C{True} when called.
        csd�j�<dS)NTr
)�a�kw��namerr
r�callback*sz6MockPositioningReceiver._addCallback.<locals>.callbackN)�setattr)rrrr
rrr$sz$MockPositioningReceiver._addCallbackN)�__name__�
__module__�__qualname__�__doc__rrrr
r
r
rrs
rN)r�twisted.positioningrr�BasePositioningReceiverrr
r
r
r�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit