Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
Ë
â{|j ã óf — d Z ddlmZ ddlmZmZmZmZmZm Z dZ
dZ G d„ dej « Z
y) aÜ Adjust some old Python 2 idioms to their modern counterparts.
* Change some type comparisons to isinstance() calls:
type(x) == T -> isinstance(x, T)
type(x) is T -> isinstance(x, T)
type(x) != T -> not isinstance(x, T)
type(x) is not T -> not isinstance(x, T)
* Change "while 1:" into "while True:".
* Change both
v = list(EXPR)
v.sort()
foo(v)
and the more general
v = EXPR
v.sort()
foo(v)
into
v = sorted(EXPR)
foo(v)
é )Ú
fixer_base)ÚCallÚCommaÚNameÚNodeÚ BlankLineÚsymsz0(n='!=' | '==' | 'is' | n=comp_op< 'is' 'not' >)z(power< 'type' trailer< '(' x=any ')' > >c óX ‡ — e Zd ZdZde›de›de›de›d� Zˆ fd„Zd„ Zd„ Z d „ Z
d
„ Zˆ xZS )Ú FixIdiomsTz
isinstance=comparison< Ú z8 T=any >
|
isinstance=comparison< T=any aX >
|
while_stmt< 'while' while='1' ':' any+ >
|
sorted=any<
any*
simple_stmt<
expr_stmt< id1=any '='
power< list='list' trailer< '(' (not arglist) any ')' > >
>
'\n'
>
sort=
simple_stmt<
power< id2=any
trailer< '.' 'sort' > trailer< '(' ')' >
>
'\n'
>
next=any*
>
|
sorted=any<
any*
simple_stmt< expr_stmt< id1=any '=' expr=any > '\n' >
sort=
simple_stmt<
power< id2=any
trailer< '.' 'sort' > trailer< '(' ')' >
>
'\n'
>
next=any*
>
c óV •— t t | � |« }|rd|v r|d |d k( r|S y |S )NÚsortedÚid1Úid2)Úsuperr Úmatch)ÚselfÚnodeÚrÚ __class__s €ú1/usr/lib64/python3.12/lib2to3/fixes/fix_idioms.pyr zFixIdioms.matchO s<