Şuanki Dizin: /usr/lib64/python3.9/lib2to3/fixes/__pycache__/ |
Şuanki Dosya : //usr/lib64/python3.9/lib2to3/fixes/__pycache__/fix_exitfunc.cpython-39.opt-1.pyc |
a �DOg� �@sJdZddlmZmZddlmZmZmZmZm Z m Z Gdd�dej�ZdS)z7 Convert use of sys.exitfunc to use the atexit module. �)�pytree� fixer_base)�Name�Attr�Call�Comma�Newline�symscs<eZdZdZdZdZ�fdd�Z�fdd�Zdd�Z�Z S) �FixExitfuncTa� ( sys_import=import_name<'import' ('sys' | dotted_as_names< (any ',')* 'sys' (',' any)* > ) > | expr_stmt< power< 'sys' trailer< '.' 'exitfunc' > > '=' func=any > ) cstt|�j|�dS�N)�superr �__init__)�self�args�� __class__��2/usr/lib64/python3.9/lib2to3/fixes/fix_exitfunc.pyr szFixExitfunc.__init__cstt|��||�d|_dSr)rr � start_tree� sys_import)rZtree�filenamerrrr!szFixExitfunc.start_treecCs&d|vr |jdur|d|_dS|d��}d|_t�tjttd�td���}t ||g|j�}|� |�|jdur�|�|d�dS|jjd}|j tjkr�|�t��|�tdd��nj|jj}|j�|j�}|j} t�tjtd �tdd�g�} t�tj| g�}|�|dt��|�|d |�dS)Nr�func��atexit�registerzKCan't find sys import; Please add an atexit import at the top of your file.�� �import�)rZclone�prefixrZNoder Zpowerrrr�replace�warningZchildren�typeZdotted_as_namesZappend_childr�parent�indexZimport_nameZsimple_stmtZinsert_childr)rZnode�resultsrr�call�namesZcontaining_stmtZpositionZstmt_containerZ new_import�newrrr� transform%s6 � �zFixExitfunc.transform) �__name__� __module__�__qualname__Zkeep_line_orderZ BM_compatibleZPATTERNr rr)� __classcell__rrrrr sr N) �__doc__Zlib2to3rrZlib2to3.fixer_utilrrrrrr ZBaseFixr rrrr�<module>s
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4