403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/gi/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/gi/__pycache__/importer.cpython-39.pyc
a

��f$�@s�ddlZddlZddlZddlmZddlZddlmZmZddlm	Z	ddl
mZddlm
Z
e��ZiZedd	��Zd
d�ZGdd
�d
e�ZdS)�N)�contextmanager�)�
Repository�RepositoryError)�PyGIWarning)�get_introspection_module)�load_overridesccs^t�|�}dV|rdS|dvr$dSt�|�dur6dSt�|�}tjd||d�t|d�dS)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)ZGLibZGObjectZGioz�%(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�giZget_required_versionZget_version�warnings�warnr)r	rZ
was_loadedr
�r�1/usr/lib64/python3.9/site-packages/gi/importer.py�_check_require_version*s

��rcCsZtjdd�}|dkr"|rdSdS|dkr6|r2dSdS|dkrJ|rFdSdS|rRdSdSdS)	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_hookZ
py_versionrrr�get_import_stacklevelQs	rc@s@eZdZdd�Zdd�Zddd�Zddd	�Zd
d�Zdd
�ZdS)�DynamicImportercCs
||_dS�N)�path)�selfr rrr�__init__kszDynamicImporter.__init__cCs*|�|j�sdS|�dd�\}}||jkS)NF�.r)�
startswithr �rsplit)r!�fullnamer r	rrr�_find_module_checknsz"DynamicImporter._find_module_checkNcCs|�|�rtj�||�SdSr)r'�	importlib�util�spec_from_loader)r!r&r �targetrrr�	find_specus
zDynamicImporter.find_speccCs|�|�r|SdSr)r')r!r&r rrr�find_moduleys
zDynamicImporter.find_modulec	Cs�|j�dd�\}}t�|�s2t�|�s2td|��tdd�}t||d��zzt|�}Wn,t	y�}zt|��WYd}~n
d}~00t�
|�D]}t�d|�
d�d	�q�t|�}Wd�n1s�0Y|S)
Nr#rz6cannot import name %s, introspection typelib not foundT)rrzgi.repository.�-r)�namer%r
rZenumerate_versions�ImportErrorrrrrZget_immediate_dependenciesr(�
import_module�splitr)	r!�specr r	rZintrospection_module�eZdepZdynamic_modulerrr�
create_module}s"
��
&zDynamicImporter.create_modulecCsdSrr)r!r&rrr�exec_module�szDynamicImporter.exec_module)NN)N)	�__name__�
__module__�__qualname__r"r'r,r-r5r6rrrrrgs

r)rrr(�
contextlibrrZ_girrr�modulerZ	overridesrZget_defaultr
�modulesrr�objectrrrrr�<module>s
&

Youez - 2016 - github.com/yon3zu
LinuXploit