403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/pygobject/2.0/codegen/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/pygobject/2.0/codegen/docextract.pyo
Ñò
U¢ºJc@sødZddkZddkZddkZddkZdgZddd„ƒYZeidƒZeidƒZ	eidƒZ
eid	ƒZeid
eiƒZ
eidƒZd„Zd
„Zdd„ZeidƒZd„Zdd„ZdS(skSimple module for extracting GNOME style doc comments from C
sources, so I can use them for other purposes.iÿÿÿÿNtextracttFunctionDoccBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(cCs(d|_g|_d|_d|_dS(Nt(tNonetnametparamstdescriptiontret(tself((s./usr/share/pygobject/2.0/codegen/docextract.pyt__init__
s			cCs
||_dS(N(R(RR((s./usr/share/pygobject/2.0/codegen/docextract.pytset_namescCs1|djo
d}n|ii||fƒdS(Ns...tVarargs(Rtappend(RRR((s./usr/share/pygobject/2.0/codegen/docextract.pyt	add_params

cCs1|idd|idd|f|id<dS(Niÿÿÿÿii(R(Rtextra((s./usr/share/pygobject/2.0/codegen/docextract.pytappend_to_last_paramscCssx\tt|iƒƒD]E}|i|d|jo'||i|d|f|i|<dSqW|i||ƒdS(Nii(trangetlenRR
(RRRti((s./usr/share/pygobject/2.0/codegen/docextract.pytappend_to_named_params"	cCs|i||_dS(N(R(RR((s./usr/share/pygobject/2.0/codegen/docextract.pytappend_descriptionscCs|i||_dS(N(R(RR((s./usr/share/pygobject/2.0/codegen/docextract.pyt
append_return scCs4x-|iD]\}}||jo|Sq
WdSdS(NR(R(RRtparamR((s./usr/share/pygobject/2.0/codegen/docextract.pytget_param_description#s


	(
t__name__t
__module__R	R
R
RRRRR(((s./usr/share/pygobject/2.0/codegen/docextract.pyR	s							s^\s*/\*\*\ss^\s*\*+/s	^\s*\*\s*s^(\w+)\s*:?s.^(returns:|return\s+value:|returns\s*)(.*\n?)$s^@(\S+)\s*:(.*\n?)$cCs×|iƒ}d}x¾|o¶|pBti|ƒod}tƒ}d}d}n|iƒ}qnti|ƒoD|iptiidƒn|||i<d}|iƒ}qnt	i
d|ƒ}|p
d}n|ip4ti|ƒ}|o|i|i
dƒƒqÂn©|octi|ƒ}|o<|i
dƒ}|i
dƒ|_|i||i|_qÂ|i|ƒn?|ou|d djo|d}nti|ƒ}|o/d}|i
dƒ}|i|i
dƒƒqÂ|i|ƒnÃ|djo
d}n¬ti|ƒ}|oL|i
dƒ}	|i
dƒ}
|	d	jo
|
|_qÂ|i|	|
ƒnJy/|	d	jo|i|ƒn|i|ƒWntiid
ƒnX|iƒ}qWdS(Niis&no function name found in doc comment
Rs
iisDescription:treturnss$something weird while reading param
(treadlinetcomment_start_pattmatchRtcomment_end_patRtsyststderrtwritetcomment_line_leadtsubtfuncname_patR
tgroupt
return_patRRRRt	param_patR
R(tfptdoc_dicttlinetin_comment_blocktcur_doctin_descriptiont	in_returnRtreturn_startRtdesc((s./usr/share/pygobject/2.0/codegen/docextract.pyt
parse_file2sv	










cCs©x¢ti|ƒD]‘}|djoqntii||ƒ}tii|ƒot||ƒnt|ƒdjo+|ddjott|dƒ|ƒqqWdS(Nt.s..iiþÿÿÿs.ctr(R2s..(	tostlistdirtpathtjointisdirt	parse_dirRR1topen(tdirR)tfileR6((s./usr/share/pygobject/2.0/codegen/docextract.pyR9}s
$cCs3|p
h}nx|D]}t||ƒqW|S(N(R9(tdirsR)R;((s./usr/share/pygobject/2.0/codegen/docextract.pyR†s
s"^<!-- ##### (\w+) (\w+) ##### -->$cCs‹d}|iƒ}xr|ojti|ƒ}|osd}|idƒ}|idƒ}|djo>|i|ƒ}|p$tƒ}|i|ƒ|||<q¡qvnÒ|djo
d}n»|o³|d djo-ti	|dƒo|i
|dƒqrqv|ddjoSti|d	ƒ}|djo#|i|d|!||dƒqr|i
|ƒqv|i
|ƒn|iƒ}qWdS(
NiitFUNCTIONs<!-- # Unused Parameters # -->
i
s
@Returns: it@t:(RRttmpl_section_patRR%tgetRR
tstringtstripRtfindRR(R(R)R,R*Rt	sect_typet	sect_nametpos((s./usr/share/pygobject/2.0/codegen/docextract.pyt
parse_tmpls8
	



#cCsÁ|p
h}nx©|D]¡}x˜ti|ƒD]‡}|djoq.ntii||ƒ}tii|ƒoq.nt|ƒdjo+|ddjott|dƒ|ƒq.q.WqW|S(NR2s..iiþÿÿÿs.sgmlR3(R2s..(R4R5R6R7R8RRIR:(R=R)R;R<R6((s./usr/share/pygobject/2.0/codegen/docextract.pytextract_tmpl¯s

$"((t__doc__RR4RCtret__all__RtcompileRRR"R$t
IGNORECASER&R'R1R9RRRARIRJ(((s./usr/share/pygobject/2.0/codegen/docextract.pyt<module>s 0	!		K			"

Youez - 2016 - github.com/yon3zu
LinuXploit