403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/gi/overrides/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyc
ó
,£´Oc@s±ddlmZddlmZmZedjZgZdefd„ƒYZ	dej
fd„ƒYZ
ed„ƒZd	„Z
ee
d
eƒee
de
ƒejdƒdS(
i(tmodules(tvariant_new_tupletvariant_type_from_stringtGLibt_VariantCreatorcBsèeZiejjd6ejjd6ejjd6ejjd6ejjd6ejj	d6ejj
d6ejjd6ejjd6ejj
d	6ejjd
6ejjd6ejjd6ejjd
6Zd„Zd„Zd„Zd„ZRS(tbtytntqtitutxttthtdtstotgtvcCsé|jj|dƒ}|rv|dk	rb|s=tdƒ‚n||dƒ}||d|dfSd|ddfSn|ddkr–|j||ƒS|jdƒrµ|j||ƒS|ddkrÕ|j||ƒStd|ƒ‚dS(	s@Create a GVariant object from given format and argument list.

        This method recursively calls itself for complex structures (arrays,
        dictionaries, boxed).

        Return a tuple (variant, rest_format, rest_args) with the generated
        GVariant, the remainder of the format string, and the remainder of the
        arguments.

        If args is None, then this won't actually consume any arguments, and
        just parse the format string and generate empty GVariant structures.
        This is required for creating empty dictionaries or arrays.
        is/not enough arguments for GVariant format stringit(sa{tascannot handle GVariant type N(	t_LEAF_CONSTRUCTORStgettNonet	TypeErrort
_create_tuplet
startswitht_create_dictt
_create_arraytNotImplementedError(tselftformattargstconstructorR((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt_create/scCsó|d}tjjtdƒƒ}|dk	rÜ|sQt|dƒtdƒkr`tdf‚nxltt|dƒƒD]T}|j	dƒr›tdf‚n|j
||d|ƒ\}}}|j|ƒqwW|d}n|jƒ|d|fS(	s>Handle the case where the outermost type of format is a tuple.itrisexpected tuple argumentt)s&too many arguments for tuple signatureN((
RtVariantBuildertnewRRttypeRtrangetlenRR"t	add_valuetend(RRR tbuilderR	Rt_((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyRSs
##
cCs¼d}|dks|drª|j|ddƒd}|j|dƒd}|jdƒsktdƒ‚n|d}|t|ƒt|ƒ }tjjt|ƒƒ}nætjjtdƒƒ}xË|dj	ƒD]¹\}}|j|d|gƒ\}}}	|j||gƒ\}
}}	|jdƒs=tdƒ‚n|d}tjjtdƒƒ}|j
|ƒ|j
|
ƒ|j
|jƒƒqÓW|dk	r©|d}n|jƒ||fS(	s=Handle the case where the outermost type of format is a dict.iiit}s(dictionary type string not closed with }sa{?*}s{?*}N(RR"Rt
ValueErrorR)RR%R&RtitemsR*R+(RRR R,trest_formattelement_typetkRtkey_vR-tval_vtentry((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyRes.
"



c	Csd}|dks|drl|j|ddƒd}|t|ƒt|ƒ }tjjt|ƒƒ}nmtjjtdƒƒ}xRtt|dƒƒD]:}|j|d|d|ƒ\}}}|j|ƒq›W|dk	rò|d}n|j	ƒ||fS(s?Handle the case where the outermost type of format is an array.iisa*N(
RR"R)RR%R&RR(R*R+(	RRR R,R1R2R	RR-((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyR†s'
(t__name__t
__module__RtVarianttnew_booleantnew_bytet	new_int16t
new_uint16t	new_int32t
new_uint32t	new_int64t
new_uint64t
new_handlet
new_doublet
new_stringtnew_object_patht
new_signaturetnew_variantRR"RRR(((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyRs&












	$		!R9cBszeZd„Zd„Zd„Zd„Zd„Zd„Zed„ƒZ	d„Z
d„Zd	„Zd
„Z
d„ZRS(cCsDtƒ}|j||gƒ\}}}|r@td|ƒ‚n|S(s½Create a GVariant from a native Python object.

        format_string is a standard GVariant type signature, value is a Python
        object whose structure has to match the signature.
        
        Examples:
          GLib.Variant('i', 1)
          GLib.Variant('(is)', (1, 'hello'))
          GLib.Variant('(asa{sv})', ([], {'foo': GLib.Variant('b', True), 
                                          'bar': GLib.Variant('i', 2)}))
        s%invalid remaining format string: "%s"(RR"R(tclst
format_stringtvaluetcreatorRR1R-((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt__new__šs
	cCsdt|dƒtƒS(Ns<GLib.Variant(%s)>tprint(tgetattrtTrue(R((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt__repr__¬scCs*y|j|ƒSWntk
r%tSXdS(N(tequalRtFalse(Rtother((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt__eq__¯s
cCs+y|j|ƒSWntk
r&tSXdS(N(RQRRO(RRS((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt__ne__µs
cCst|jƒ|jƒfƒS(N(thashtget_type_stringtunpack(R((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt__hash__»scCsöi
|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd	6|j	d
6|j
d6|j
d6|j
d
6}|j|jƒƒ}|rª|ƒS|jƒj
dƒrýgt|jƒƒD]}|j|ƒjƒ^qÒ}t|ƒS|jƒj
dƒrpi}xQt|jƒƒD]=}|j|ƒ}|jdƒjƒ||jdƒjƒ<q+W|S|jƒj
dƒr·gt|jƒƒD]}|j|ƒjƒ^q˜S|jƒj
dƒrÜ|jƒjƒStd|jƒƒ‚dS(s1Decompose a GVariant into a native Python object.RRRRR	R
RRR
RRRRRsa{iiRRsunsupported GVariant type N(tget_booleantget_bytet	get_int16t
get_uint16t	get_int32t
get_uint32t	get_int64t
get_uint64t
get_handlet
get_doublet
get_stringRRWRR(t
n_childrentget_child_valueRXttupletget_variantR(RtLEAF_ACCESSORStlaR	tresR((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyRXÁsB












1
,/c	Cs,|dkrgS|jdƒs&|gSg}d}|dd!}xæ|r'|d}||7}|d}|dkrxqBn|d
krd}|}|dkr¥d
}nd}xc|dkr
|d}||7}|d}||krñ|d7}q®||kr®|d8}q®q®Wn|j|ƒd}qBW|S(scReturn a list of the element signatures of the topmost signature tuple.

        If the signature is not a tuple, it returns one element with the entire
        signature. If the signature is an empty tuple, the result is [].
        
        This is useful for e. g. iterating over method parameters which are
        passed as a single Variant.
        s()RtiiÿÿÿÿitmRt{R$R.(RmR(RRn(Rtappend(	tklasst	signaturetresulttheadttailtctleveltuptdown((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pytsplit_signatureòs<

	


	





cCsp|jƒdkr"t|jƒƒS|jƒjdƒsL|jƒjdƒrV|jƒStd|jƒƒ‚dS(NRRRRRs'GVariant type %s does not have a length(RRR(RWR)RdRReR(R((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt__len__'s
*
cCs§|jƒjdƒrÓyA|j|tdƒƒ}|dkrKt|ƒ‚n|jƒSWqÓtk
rÏxWt|j	ƒƒD]C}|j
|ƒ}|j
dƒjƒ|kry|j
dƒjƒSqyWt|ƒ‚qÓXn|jƒjdƒsý|jƒjdƒrht|ƒ}|dkr(|j	ƒ|}n|dksF||j	ƒkrUtdƒ‚n|j
|ƒjƒS|jƒdkr|j
ƒj|ƒStd|jƒƒ‚dS(
Nsa{t*iiRRslist index out of rangeRRRs#GVariant type %s is not a container(RRR(RWRtlookup_valueRRtKeyErrorRXRR(ReRftintt
IndexErrorRdt__getitem__(RtkeytvalR	R((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyR€/s,
*cCs
|jƒS(N(t__bool__(R((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt__nonzero__Ssc
CsÆ|jƒdkr"|jƒd
kS|jƒdkr>|jƒS|jƒdkrft|jƒƒd
kS|jƒjdƒs|jƒjdƒr |jƒd
kS|jƒdkrÂt|jƒƒStS(NRRRR	R
RRR
RiRRRRRRR(	RRRR	R
RRR
R(R(RRR(R(	RWRXRZR)RdRRetboolRO(R((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyRƒVs
*cCs{|jƒjdƒs)td|jƒfSg}xEt|jƒƒD]1}|j|ƒ}|j|jdƒjƒƒqBW|S(Nsa{s$GVariant type %s is not a dictionaryi(RWRRR(ReRfRoRX(RRkR	R((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pytkeysfs (R7R8RLRPRTRURYRXtclassmethodRyRzR€R„RƒR†(((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyR9™s						15		$		cGs
t|ƒS(N(R(RHtelements((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt	new_tuplepscCstjj|ƒ\}}|S(N(RR9Rd(RRJtlength((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyRdtsR‰RdN(timporterRt_giRRt_introspection_moduleRt__all__tobjectRR9R‡R‰RdtsetattrRo(((s5/usr/lib/python2.7/dist-packages/gi/overrides/GLib.pyt<module>s
}×	

Youez - 2016 - github.com/yon3zu
LinuXploit