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__/shimmodule.cpython-312.pyc
�

}�em
���dZddlZddlZddlZddlZddlmZddlmZGd�de	�Z
Gd�d	ejj�Z
Gd
�dej�Zy)z%A shim module for deprecated imports
�N)�
import_module�)�import_itemc��eZdZdZy)�ShimWarningzFA warning to show when a module has moved, and a shim is in its place.N)�__name__�
__module__�__qualname__�__doc__���:/usr/lib/python3/dist-packages/IPython/utils/shimmodule.pyrrs��Pr
rc�$�eZdZdZd�Zd�Zdd�Zy)�ShimImporterz�Import hook for a shim.

    This ensures that submodule imports return the real target module,
    not a clone that will confuse `is` and `isinstance` checks.
    c� �||_||_y�N��src�mirror)�selfrrs   r�__init__zShimImporter.__init__s�������r
c�L�|j|t|j�dzS)z#get the name of the mirrored moduleN)r�lenr)r�fullnames  r�_mirror_namezShimImporter._mirror_names"���{�{�X�c�$�(�(�m�o�6�6�6r
Nc��|j|jdz�r0|j|�}tjj|�Sy�N�.)�
startswithrr�	importlib�util�	find_spec)rr�path�target�mirror_names     rr"zShimImporter.find_spec"sB�����t�x�x�#�~�.��+�+�H�5�K��>�>�+�+�K�8�8�/r
r)rr	r
rrrr"rr
rrrs���
�7�
9r
rc�`��eZdZ�fd�Zed��Zed��Zd�Zed��Zd�Z	d�Z
�xZS)�
ShimModulec���|jd�|_|jdd�}|r|jdd�d|d<tt|�|i|��|r5tjjt||j���yy)Nrrrr����namer)
�pop�_mirror�rsplit�superr'r�sys�	meta_path�appendr)r�args�kwargsr�	__class__s    �rrzShimModule.__init__*s{����z�z�(�+����j�j���%��� �Z�Z��Q�/��3�F�6�N�
�j�$�(�$�9�&�9���M�M� � ���T�\�\�:�
�r
c��gSrr�rs r�__path__zShimModule.__path__6s���	r
c�@�t|j�jS)z&Don't produce __spec__ until requested)rr,�__spec__r6s rr9zShimModule.__spec__:s���T�\�\�*�3�3�3r
c�>�tt|j��Sr)�dirrr,r6s r�__dir__zShimModule.__dir__?s���=����.�/�/r
c���t|j�}	|jS#t$r4t	|�D�cgc]}|jd�r�|��ncc}wc}cYSwxYw)z Ensure __all__ is always defined�_)rr,�__all__�AttributeErrorr;r)r�modr*s   rr?zShimModule.__all__BsV���D�L�L�)��	K��;�;����	K�%(��X�J�T�T�_�_�S�5I�D�J��J�J�	K�s �#�A �A�A�	A �A c�v�|j�d|��}	t|�S#t$r}t|�|�d}~wwxYwr)r,r�ImportErrorr@)r�keyr*�es    r�__getattr__zShimModule.__getattr__Ks=���,�,��,��	-��t�$�$���	-� ��%�1�,��	-�s�
�	8�3�8c�n�	|jd��S#t$rd|j�d�cYSwxYw)N�__repr__z<ShimModule for �>)rFr@r,r6s rrHzShimModule.__repr__Ss@��	8�/�4�#�#�J�/�1�1���	8�%�d�l�l�%5�Q�7�7�	8�s��4�4)rr	r
r�propertyr7r9r<r?rFrH�
__classcell__)r4s@rr'r'(sU���
������4��4�0��K��K�-�8r
r')r�
importlib.abcr �importlib.utilr/�typesr�importstringr�Warningr�abc�MetaPathFinderr�
ModuleTyper'rr
r�<module>rTsT���
��
��#�%�Q�'�Q�9�9�=�=�/�/�9�*18��!�!�18r

Youez - 2016 - github.com/yon3zu
LinuXploit