ok

Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/gi/
Upload File :
Current File : //proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/gi/module.pyc

�
QLZc@@s|ddlmZddlZddlZejddkZy
djZWn!ek
rkddlmZnXddl	Z	ddl
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZmZej Z dd	l!m"Z"m#Z#m$Z$m%Z%m&Z&ej'�Z(iZ)d
�Z*d�Z+de,fd
��YZ-d�Z.dS(i(tabsolute_importNit(t	maketransi(t
RepositorytFunctionInfotRegisteredTypeInfotEnumInfot
ObjectInfot
InterfaceInfotConstantInfot
StructInfot	UnionInfotCallbackInfotStructtBoxedt	CCallbacktenum_addtenum_register_new_gtype_and_addt	flags_addt flags_register_new_gtype_and_addt_gobject(tGObjectMetat
StructMeta(t	TYPE_NONEt
TYPE_BOXEDtTYPE_POINTERt	TYPE_ENUMt
TYPE_FLAGScC@sp|j�}|s8|j�}|r4|jr4|jStS|j�}|j�}tjd|�}t||�S(Nsgi.repository.(	t
get_parentt
get_g_typetpytypetobjectt
get_namespacetget_namet	importlibt
import_moduletgetattr(tobject_infotparent_object_infotgtypet	namespacetnametmodule((s//usr/lib64/python2.7/site-packages/gi/module.pytget_parent_for_objectMscC@sbg}xU|j�D]G}|j�}|j�}tjd|�}|jt||��qW|S(Nsgi.repository.(tget_interfacesR R!R"R#tappendR$(R%t
interfacestinterface_infoR(R)R*((s//usr/lib64/python2.7/site-packages/gi/module.pytget_interfaces_for_objectdstIntrospectionModulecB@s5eZdZdd�Zd�Zd�Zd�ZRS(sUAn 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.
    cC@s�tj||�||_||_d||_tj|j�|_trb|jjd�|_n|jdkr�tj
|j�|_ndS(s"Might raise gi._gi.RepositoryErrorsgi.repository.sUTF-8N(t
repositorytrequiret
_namespacet_versiont__name__tget_typelib_patht__path__t	_have_py3tdecodetNonetget_version(tselfR(tversion((s//usr/lib64/python2.7/site-packages/gi/module.pyt__init__ws		
c@s�tj|j|�}|s7td|j|f��nt|t�r�|j�}|j}|dkr�|j
�r�|jt�r�t
|�}q�|tks�t�t|�}n<|jt�r�t|�}n|tks�t�t|�}||_d|j�|_tdd�}xE|j�D]7}|j�j|�}t||||j���q&Wx*|j�D]}t||j|�qnWn|tkr�||_q�nt|t�r�|j�}t|t�rt |��t!�fd�t"|�D��}	�f|	}
t#}n�t|t$�r8t%f}
t#}n�t|t&�rYt'f}
t#}n�t|t(t)f�r�|jt*�r�t+f}
nX|jt,�s�|tks�|j-|kr�t.f}
n"t/d|j�|j0�f��t1}nt2|��|tkr7|j}|dk	r7||
kr7||j3|<|Sni|d6d|jd6|d	6}
|||
|
�}|tkr�||_q�nBt|t4�r�|}n*t|t5�r�|j�}nt2|��||j3|<|S(
Ns%r object has no attribute %rsgi.repository.tabcdefgjhijklmnopqrstuvwxyztABCDEFGJHIJKLMNOPQRSTUVWXYZc3@s$|]}t�|�s|VqdS(N(t
issubclass(t.0t	interface(tparent(s//usr/lib64/python2.7/site-packages/gi/module.pys	<genexpr>�ss$unable to create a wrapper for %s.%st__info__t
__module__t	__gtype__(6R2tfind_by_nameR4tAttributeErrorR6t
isinstanceRRRR;tis_flagstis_aRRRtAssertionErrorRRRRRFR RGRt
get_valuestget_name_unescapedt	translatetsetattrt	get_valuetget_methodsRRR+ttupleR0RRRRt
GInterfaceR
RRRRtfundamentalR
t	TypeErrorR!RtNotImplementedErrort__dict__RR	(R=R)tinfotg_typetwrappertascii_upper_transt
value_infot
value_nametmethod_infoR.tbasest	metaclassttype_tdict_((REs//usr/lib64/python2.7/site-packages/gi/module.pyt__getattr__�s�			 "
					"		

	
cC@s;tj|j�}tr*|jd�}nd|j|fS(NsUTF-8s <IntrospectionModule %r from %r>(R2R7R4R9R:(R=tpath((s//usr/lib64/python2.7/site-packages/gi/module.pyt__repr__�scC@s^tt|j��}|j|jj��tj|j�}|jd�|D��t	|�S(Ncs@s*|] }t|t�s|j�VqdS(N(RKRR!(RCR[((s//usr/lib64/python2.7/site-packages/gi/module.pys	<genexpr>s(
tsettdirt	__class__tupdateRZtkeysR2t	get_infosR4tlist(R=tresulttnamespace_infos((s//usr/lib64/python2.7/site-packages/gi/module.pyt__dir__�s
N(R6RGt__doc__R;R?RfRhRr(((s//usr/lib64/python2.7/site-packages/gi/module.pyR1os
	j	cC@s@|tkrt|Stj|�}t||�}|t|<|S(s�
    :Returns:
        An object directly wrapping the gi module without overrides.

    Might raise gi._gi.RepositoryError
    (t_introspection_modulestgitget_required_versionR1(R(R>R*((s//usr/lib64/python2.7/site-packages/gi/module.pytget_introspection_modules
(/t
__future__RtsysR"tversion_infoR9RRJtstringRut_giRRRRRRR	R
RRR
RRRRRRRttypesRRRVt
_constantsRRRRRtget_defaultR2RtR+R0RR1Rw(((s//usr/lib64/python2.7/site-packages/gi/module.pyt<module>s$

v	(		�

Zerion Mini Shell 1.0