Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/gi/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/gi/__pycache__/importer.cpython-310.pyc
o

�=Abz�@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|r
dS|dvrdSt�|�durdSt�|�}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)�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)rr�
was_loadedr
�r�-/usr/lib/python3/dist-packages/gi/importer.py�_check_require_version*s �


�
�rcCsVtjdd�}|dkr|rdSdS|dkr|rdSdS|dkr%|r#dSdS|r)dSdS)	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_versionrrr�get_import_stacklevelQs	r$c@s8eZdZdd�Zdd�Zddd�Zd
dd	�Zd
d�ZdS)�DynamicImportercCs
||_dS�N)�path)�selfr'rrr�__init__ks
zDynamicImporter.__init__cCs*|�|j�sdS|�dd�\}}||jkS)NF�.r)�
startswithr'�rsplit)r(�fullnamer'rrrr�_find_module_checkns
z"DynamicImporter._find_module_checkNcCs|�|�rtj�||�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�|tjvr
tj|S|�dd�\}}t�|�s"t�|�s"td|��tdd�}t||d��7zt	|�}Wnt
yD}zt|��d}~wwt�|�D]}t�
d|�d�d	�qJt|�}Wd�n1sgwYd
||_||_|tj|<|S)Nr*rz6cannot import name %s, introspection typelib not foundT)r"rzgi.repository.�-rz<%s>)r �modulesr,rr�enumerate_versions�ImportErrorr$rrr�get_immediate_dependenciesr/�
import_module�splitr�__file__�
__loader__)	r(r-r'rr�introspection_module�e�dep�dynamic_modulerrr�load_module}s2


��
��
�

zDynamicImporter.load_module)NNr&)�__name__�
__module__�__qualname__r)r.r3r4rBrrrrr%gs

r%)r rr/�
contextlibrr�_girrr�moduler�	overridesr�get_defaultrr6rr$�objectr%rrrr�<module>s
&

Spamworldpro Mini