HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //proc/self/root/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_next.pyc
�
3Y~gc@s�dZddlmZddlmZddlmZddlm	Z	m
Z
mZdZdej
fd��YZd	�Zd
�Zd�ZdS(
s.Fixer for it.next() -> next(it), per PEP 3114.i(ttoken(tpython_symbols(t
fixer_base(tNametCalltfind_bindings;Calls to builtin next() possibly shadowed by global bindingtFixNextcBs,eZeZdZdZd�Zd�ZRS(s�
    power< base=any+ trailer< '.' attr='next' > trailer< '(' ')' > >
    |
    power< head=any+ trailer< '.' attr='next' > not trailer< '(' ')' > >
    |
    classdef< 'class' any+ ':'
              suite< any*
                     funcdef< 'def'
                              name='next'
                              parameters< '(' NAME ')' > any+ >
                     any* > >
    |
    global=global_stmt< 'global' any* 'next' any* >
    tprecCsWtt|�j||�td|�}|rJ|j|t�t|_n	t|_dS(Nunext(	tsuperRt
start_treeRtwarningtbind_warningtTruet
shadowed_nexttFalse(tselfttreetfilenametn((s;/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_next.pyR	$scCs�|st�|jd�}|jd�}|jd�}|r�|jrg|jtdd|j��q�g|D]}|j�^qn}d|d_|jttdd|j�|��n�|r�tdd|j�}|j|�n�|rct|�rM|d	}d
j	g|D]}t
|�^q�j�dkrI|j|t
�ndS|jtd��n(d|kr�|j|t
�t|_ndS(
Ntbasetattrtnameu__next__tprefixuiunexttheadtu__builtin__tglobal(tAssertionErrortgetR
treplaceRRtcloneRtis_assign_targettjointstrtstripR
RR(RtnodetresultsRRRRR((s;/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_next.pyt	transform.s.	
(
4(t__name__t
__module__Rt
BM_compatibletPATTERNtorderR	R$(((s;/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_next.pyRs
	
cCs]t|�}|dkrtSx:|jD]/}|jtjkrBtSt||�r&tSq&WtS(N(	tfind_assigntNoneRtchildrenttypeRtEQUALt
is_subtreeR(R"tassigntchild((s;/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_next.pyRQscCsH|jtjkr|S|jtjks7|jdkr;dSt|j�S(N(R-tsymst	expr_stmttsimple_stmttparentR+R*(R"((s;/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_next.pyR*]s
!cs-|�krtSt�fd�|jD��S(Nc3s|]}t|��VqdS(N(R/(t.0tc(R"(s;/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_next.pys	<genexpr>gs(RtanyR,(trootR"((R"s;/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_next.pyR/dsN(t__doc__tpgen2RtpygramRR2RRt
fixer_utilRRRRtBaseFixRRR*R/(((s;/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_next.pyt<module>s@