AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.12.161.0
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/983/cwd/lib64/python2.7/lib2to3/fixes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/983/cwd/lib64/python2.7/lib2to3/fixes/fix_exitfunc.pyc
�
ۜSec@sgdZddlmZmZddlmZmZmZmZm	Z	m
Z
dejfd��YZdS(s7
Convert use of sys.exitfunc to use the atexit module.
i����(tpytreet
fixer_base(tNametAttrtCalltCommatNewlinetsymstFixExitfunccBs5eZeZeZdZd�Zd�Zd�ZRS(s�
              (
                  sys_import=import_name<'import'
                      ('sys'
                      |
                      dotted_as_names< (any ',')* 'sys' (',' any)* >
                      )
                  >
              |
                  expr_stmt<
                      power< 'sys' trailer< '.' 'exitfunc' > >
                  '=' func=any >
              )
              cGstt|�j|�dS(N(tsuperRt__init__(tselftargs((s2/usr/lib64/python2.7/lib2to3/fixes/fix_exitfunc.pyR
scCs&tt|�j||�d|_dS(N(R	Rt
start_treetNonet
sys_import(Rttreetfilename((s2/usr/lib64/python2.7/lib2to3/fixes/fix_exitfunc.pyR
!scCs�d|kr/|jdkr+|d|_ndS|dj�}d|_tjtjtt	d�t	d���}t
||g|j�}|j|�|jdkr�|j|d�dS|jj
d}|jtjkr|jt��|jt	dd��n�|jj}|j
j|j�}|j}	tjtjt	d	�t	dd�g�}
tjtj|
g�}|j|dt��|j|d
|�dS(NRtfuncuuatexituregistersKCan't find sys import; Please add an atexit import at the top of your file.iu uimporti(RRtclonetprefixRtNodeRtpowerRRRtreplacetwarningtchildrenttypetdotted_as_namestappend_childRtparenttindextimport_nametsimple_stmttinsert_childR(RtnodetresultsRtregistertcalltnamestcontaining_stmttpositiontstmt_containert
new_importtnew((s2/usr/lib64/python2.7/lib2to3/fixes/fix_exitfunc.pyt	transform%s2	
	(	t__name__t
__module__tTruetkeep_line_ordert
BM_compatibletPATTERNR
R
R,(((s2/usr/lib64/python2.7/lib2to3/fixes/fix_exitfunc.pyRs		N(
t__doc__tlib2to3RRtlib2to3.fixer_utilRRRRRRtBaseFixR(((s2/usr/lib64/python2.7/lib2to3/fixes/fix_exitfunc.pyt<module>s.

Anon7 - 2022
AnonSec Team