JFIF$        dd7 

Viewing File: /usr/lib64/python3.9/site-packages/gi/__pycache__/module.cpython-39.opt-1.pyc

a

�6Uc�&�@s�ddlZddlmZddlZddlmZmZmZmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZmZddlmZmZddlmZmZmZmZmZe� �Z!iZ"dd�Z#d	d
�Z$Gdd�de%�Z&d
d�Z'dS)�N)�Lock�)�
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.)	Z
get_parent�
get_g_type�pytype�object�
get_namespace�get_name�	importlib�
import_module�getattr)�object_infoZparent_object_infoZgtype�	namespace�name�module�r+�//usr/lib64/python3.9/site-packages/gi/module.py�get_parent_for_objectAs
r-cCsDg}|��D]2}|��}|��}t�d|�}|�t||��q|Sr)Zget_interfacesr"r#r$r%�appendr&)r'�
interfacesZinterface_infor(r)r*r+r+r,�get_interfaces_for_objectXsr0c@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.
    NcCsZt�||�||_||_d||_t�|j�}|g|_|jdurNt�|j�|_t�|_	dS)z"Might raise gi._gi.RepositoryErrorrN)
�
repositoryZrequire�
_namespaceZ_version�__name__�get_typelib_path�__path__Zget_versionr�_lock)�selfr(�version�pathr+r+r,�__init__ks

zIntrospectionModule.__init__cs�t�|j|�}|s$td|j|f��t|t��r0|��}|j��|j	}|dur�|�
�rt|�t�rjt
|�}q�t|�}n|�t�r�t|�}nt|�}||_d|��|_d�dd�}|��D]&}|���|�}t||||����q�|��D]}t||j|�q�|tk�r||_	Wd�n1�s"0Y�n�t|t��r�|��}t|t��r�t|��t �fdd�t!|�D��}	�f|	}
t"}n�t|t#��r�t$f}
t"}n�t|t%��r�t&f}
t"}ntt|t't(f��r|�t)��r�t*f}
nB|�t+��s�|tk�s�|j,|k�rt-f}
nt.d|��|�/�f��t0}nt1|��|j�~|tk�rn|j	}|du�rn||
v�rn||j2|<|Wd�S|d|j|d	�}
|||
|
�}|tk�r�||_	Wd�n1�s�0Yn0t|t3��r�|}nt|t4��r�|��}nt1|��||j2|<|S)
Nz%r object has no attribute %rr�ZabcdefgjhijklmnopqrstuvwxyzZABCDEFGJHIJKLMNOPQRSTUVWXYZc3s|]}t�|�s|VqdS�N)�
issubclass)�.0Z	interface��parentr+r,�	<genexpr>�s
�z2IntrospectionModule.__getattr__.<locals>.<genexpr>z$unable to create a wrapper for %s.%s)�__info__�
__module__Z	__gtype__)5r2Zfind_by_namer3�AttributeErrorr4�
isinstancerrr7r Zis_flagsZis_arrrrrrrCr"rD�	maketransZ
get_valuesZget_name_unescaped�	translate�setattrZ	get_valueZget_methodsrrrr-�tupler0rr
rr	rrrrrrZfundamentalr�	TypeErrorr#r�NotImplementedError�__dict__rr
)r8r)�infoZg_type�wrapperZascii_upper_transZ
value_infoZ
value_nameZmethod_infor/�bases�	metaclass�type_Zdict_r+r@r,�__getattr__{s��




�
*
��

�
(

zIntrospectionModule.__getattr__cCst�|j�}d|j|fS)Nz <IntrospectionModule %r from %r>)r2r5r3)r8r:r+r+r,�__repr__�szIntrospectionModule.__repr__cCsFtt|j��}|�|j���t�|j�}|�dd�|D��t	|�S)Ncss |]}t|t�s|��VqdSr=)rFr
r#)r?rNr+r+r,rB�s
�z.IntrospectionModule.__dir__.<locals>.<genexpr>)
�set�dir�	__class__�updaterM�keysr2Z	get_infosr3�list)r8�resultZnamespace_infosr+r+r,�__dir__�s
zIntrospectionModule.__dir__)N)r4rD�__qualname__�__doc__r;rSrTr\r+r+r+r,r1cs

mr1cCs0|tvrt|St�|�}t||�}|t|<|S)z�
    :Returns:
        An object directly wrapping the gi module without overrides.

    Might raise gi._gi.RepositoryError
    )�_introspection_modules�giZget_required_versionr1)r(r9r*r+r+r,�get_introspection_module�s

ra)(r$�	threadingrr`Z_girrrrrr	r
rrr
rrrrrrrr�typesrrZ
_constantsrrrrr�get_defaultr2r_r-r0r!r1rar+r+r+r,�<module>sP
Back to Directory  nL+D550H?Mx ,D"v]qv;6*Zqn)ZP0!1 A "#a$2Qr D8 a Ri[f\mIykIw0cuFcRı?lO7к_f˓[C$殷WF<_W ԣsKcëIzyQy/_LKℂ;C",pFA:/]=H  ~,ls/9ć:[=/#f;)x{ٛEQ )~ =𘙲r*2~ a _V=' kumFD}KYYC)({ *g&f`툪ry`=^cJ.I](*`wq1dđ#̩͑0;H]u搂@:~וKL Nsh}OIR*8:2 !lDJVo(3=M(zȰ+i*NAr6KnSl)!JJӁ* %݉?|D}d5:eP0R;{$X'xF@.ÊB {,WJuQɲRI;9QE琯62fT.DUJ;*cP A\ILNj!J۱+O\͔]ޒS߼Jȧc%ANolՎprULZԛerE2=XDXgVQeӓk yP7U*omQIs,K`)6\G3t?pgjrmۛجwluGtfh9uyP0D;Uڽ"OXlif$)&|ML0Zrm1[HXPlPR0'G=i2N+0e2]]9VTPO׮7h(F*癈'=QVZDF,d߬~TX G[`le69CR(!S2!P <0x<!1AQ "Raq02Br#SCTb ?Ζ"]mH5WR7k.ۛ!}Q~+yԏz|@T20S~Kek *zFf^2X*(@8r?CIuI|֓>^ExLgNUY+{.RѪ τV׸YTD I62'8Y27'\TP.6d&˦@Vqi|8-OΕ]ʔ U=TL8=;6c| !qfF3aů&~$l}'NWUs$Uk^SV:U# 6w++s&r+nڐ{@29 gL u"TÙM=6(^"7r}=6YݾlCuhquympǦ GjhsǜNlɻ}o7#S6aw4!OSrD57%|?x>L |/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