ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/proc/self/root/lib64/python2.7/Tools/scripts/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/proc/self/root/lib64/python2.7/Tools/scripts/h2py.pyc

�
�fc@sddlZddlZddlZddlZejd�Zejd�Zejd�Zejd�Zejd�Z	ee	gZ
ejd�Zejd�Zia
iZyejd	jd
�ZWnek
r�yejdjd
�ZWq�ek
r�yfejjd�d
kr9ejdjd
�Zn1ejjd�rdejdjd�Zne�Wq�ek
r�dgZy*ejd
ejjdejd��Wq�ek
r�q�Xq�Xq�XnXd�Zd�Zid�Zedkre�ndS(i����Ns+^[	 ]*#[	 ]*define[	 ]+([a-zA-Z0-9_]+)[	 ]+sG^[	 ]*#[	 ]*define[	 ]+([a-zA-Z0-9_]+)\(([_a-zA-Z][_a-zA-Z0-9]*)\)[	 ]+s"^[	 ]*#[	 ]*include[	 ]+<([^>
]+)>s/\*([^*]+|\*+[^/])*(\*+/)?s//.*s'(\\.[^\\]*|[^\\])'s0x([0-9a-fA-F]+)L?tincludet;tINCLUDEtbeosit
BEINCLUDEStatheostC_INCLUDE_PATHt:s/usr/includet	MULTIARCHcCs�tjtjdd�\}}x9|D]1\}}|dkr&tjtj|��q&q&W|smdg}nxA|D]9}|dkr�tjjd�t	tj
tj�qtt|d�}tj
j|�}|jd�}|dkr�|| }n|j�}|d	}t|d
�}	|	jd|�iaxXtD]P}
|t|
� |
kr8dt|t|
�d<|t|t|
�d<Pq8q8Wt	||	�|	j�|j�qtWdS(Nisi:s-it-s# Generated by h2py from stdin
trt.is.pytws# Generated by h2py from %s
(tgetopttsystargvtignorestappendtretcompiletstdouttwritetprocesststdintopentostpathtbasenametrfindtuppertfiledictt
searchdirstlentNonet
importabletclose(toptstargstotatfilenametfptoutfiletitmodnametoutfptdir((s*/usr/lib64/python2.7/Tools/scripts/h2py.pytmainDs8





cCs�x tD]}|jd|�}qWtjd|�}d}dtjd}x�tj||�}|skPn|j�\}}t|t	|jd��d�}|tjkr�||8}|| dt
|�d||}n|d}qOW|S(	Nt s	ord('\1')iiiit(t)(Rtsubtp_charRtmaxinttp_hextsearchtspantlongtslicetstr(tbodytptstarttUMAXtmtstetval((s*/usr/lib64/python2.7/Tools/scripts/h2py.pytpytifycs 
"
'cBs�d}x�|j�}|sPn|d}ej|�}|rx>|ddkr~|j�}|sgPn|d}||}qAW|jd�}||j�}e|�}d}	d||j�f}
y|
|UWnejj	d|
�qX|j	|
�ne
j|�}|r�|jdd�\}}||j�}e|�}d|||f}
y|
|UWnejj	d|
�q�X|j	|
�nej|�}|r	|j}
|
d\}}|||!}e
j|�r�|j	d	e
|�q�ej|�s�de|<d}x;eD]3}ye|d
|�}PWqek
rPqXqW|r|j	d|�e|||�q�ejj	d|�q�q	q	WdS(
Niii����s\
s%s = %s
sSkipping: %sisdef %s(%s): return %s
sfrom %s import *
t/s
# Included from %s
s!Warning - could not find file %s
(treadlinetp_definetmatchtgrouptendRDtstripRtstderrRtp_macrot	p_includetregsR"thas_keyRR!RRtIOErrorR(R)R-tenvtlinenotlineRHtnextlinetnameR<toktstmttmacrotargROR'tbR(tinclfpR.((s*/usr/lib64/python2.7/Tools/scripts/h2py.pyRwsr

	



t__main__(RRR
RRRGRMRNt	p_commentt
p_cpp_commentRR4R6RR"tenvirontsplitRtKeyErrortplatformtfindt
startswithtinsertRtjoinR/RDRt__name__(((s*/usr/lib64/python2.7/Tools/scripts/h2py.pyt<module>sF0	



	
		=

Zerion Mini Shell 1.0