CasperSecurity

Current Path : /lib/python3/dist-packages/gi/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/gi/__pycache__/module.cpython-310.pyc

o

b�^M%�@s�ddlZddlZddlmZmZmZmZmZmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZmZddlmZmZddlmZmZmZmZmZe��ZiZ dd�Z!dd	�Z"Gd
d�de#�Z$dd
�Z%dS)�N�)�
Repository�FunctionInfo�RegisteredTypeInfo�EnumInfo�
ObjectInfo�
InterfaceInfo�ConstantInfo�
StructInfo�	UnionInfo�CallbackInfo�Struct�Boxed�	CCallback�enum_add�enum_register_new_gtype_and_add�	flags_add� flags_register_new_gtype_and_add�
GInterface)�GObjectMeta�
StructMeta)�	TYPE_NONE�
TYPE_BOXED�TYPE_POINTER�	TYPE_ENUM�
TYPE_FLAGScCsP|��}|s|��}|r|jr|jStS|��}|��}t�d|�}t||�S�N�gi.repository.)	�
get_parent�
get_g_type�pytype�object�
get_namespace�get_name�	importlib�
import_module�getattr)�object_info�parent_object_info�gtype�	namespace�name�module�r-�+/usr/lib/python3/dist-packages/gi/module.py�get_parent_for_object@s

r/cCsDg}|��D]}|��}|��}t�d|�}|�t||��q|Sr)�get_interfacesr"r#r$r%�appendr&)r'�
interfaces�interface_infor*r+r,r-r-r.�get_interfaces_for_objectWsr4c@s2eZdZdZddd�Zdd�Zdd�Zd	d
�ZdS)�IntrospectionModuleaUAn object which wraps an introspection typelib.

    This wrapping creates a python module like representation of the typelib
    using gi repository as a foundation. Accessing attributes of the module
    will dynamically pull them in and create wrappers for the members.
    These members are then cached on this introspection module.
    NcCsVt�||�||_||_d||_t�|j�}|g|_|jdur)t�|j�|_dSdS)z"Might raise gi._gi.RepositoryErrorrN)�
repository�require�
_namespace�_version�__name__�get_typelib_path�__path__�get_version)�selfr*�version�pathr-r-r.�__init__js

�zIntrospectionModule.__init__cs�t�|j|�}|std|j|f��t|t�r�|��}|j}|dur�|�	�r;|�
t�r0t|�}n|t
ks6J�t|�}n|�
t�rEt|�}n
|t
ksKJ�t|�}||_d|��|_d�dd�}|��D]}|���|�}t||||����qc|��D]	}t||j|�q{|t
kr�||_n�t|t��r1|��}t|t�r�t|��t�fdd�t |�D��}	�f|	}
t!}nKt|t"�r�t#f}
t!}n@t|t$�r�t%f}
t!}n5t|t&t'f�r�|�
t(�r�t)f}
n|�
t*�s�|t
ks�|j+|kr�t,f}
nt-d|��|�.�f��t/}nt0|��|t
k�r|j}|du�r||
v�r||j1|<|S|d|j|d	�}
|||
|
�}|t
k�r0||_nt|t2��r:|}nt|t3��rE|��}nt0|��||j1|<|S)
Nz%r object has no attribute %rr��abcdefgjhijklmnopqrstuvwxyz�ABCDEFGJHIJKLMNOPQRSTUVWXYZc3s�|]
}t�|�s|VqdS�N)�
issubclass)�.0�	interface��parentr-r.�	<genexpr>�s��z2IntrospectionModule.__getattr__.<locals>.<genexpr>z$unable to create a wrapper for %s.%s)�__info__�
__module__�	__gtype__)4r6�find_by_namer8�AttributeErrorr:�
isinstancerrr �is_flags�is_arrrrrrrrLr"rM�	maketrans�
get_values�get_name_unescaped�	translate�setattr�	get_value�get_methodsrrr/�tupler4rrrrrr
rrrr�fundamentalr
�	TypeErrorr#r�NotImplementedError�__dict__rr	)r>r+�info�g_type�wrapper�ascii_upper_trans�
value_info�
value_name�method_infor2�bases�	metaclass�type_�dict_r-rIr.�__getattr__xs��





��








�
�

zIntrospectionModule.__getattr__cCst�|j�}d|j|fS)Nz <IntrospectionModule %r from %r>)r6r;r8)r>r@r-r-r.�__repr__�szIntrospectionModule.__repr__cCsFtt|j��}|�|j���t�|j�}|�dd�|D��t	|�S)Ncss"�|]}t|t�s|��VqdSrE)rQrr#)rGr`r-r-r.rK�s��z.IntrospectionModule.__dir__.<locals>.<genexpr>)
�set�dir�	__class__�updater_�keysr6�	get_infosr8�list)r>�result�namespace_infosr-r-r.�__dir__�s
zIntrospectionModule.__dir__rE)r:rM�__qualname__�__doc__rArkrlrvr-r-r-r.r5bs
jr5cCs0|tvrt|St�|�}t||�}|t|<|S)z�
    :Returns:
        An object directly wrapping the gi module without overrides.

    Might raise gi._gi.RepositoryError
    )�_introspection_modules�gi�get_required_versionr5)r*r?r,r-r-r.�get_introspection_module�s

r|)&r$rz�_girrrrrrr	r
rrr
rrrrrrr�typesrr�
_constantsrrrrr�get_defaultr6ryr/r4r!r5r|r-r-r-r.�<module>sP
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY