Warning: Undefined array key "बहिः गच्छतु" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
136
Warning: Undefined array key "aksi" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
140
Warning: Undefined array key "नामपत्र" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
159
Warning: Undefined array key "नामपत्र" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
181
Current File : //usr/lib64/python2.6/lib2to3/fixes/fix_idioms.pyc |
��
���Lc @ sm d Z d d k l Z d d k l Z l Z l Z l Z l Z l Z d Z
d Z d e i f d � � YZ
d S( s� 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)
i ( t
fixer_base( t Callt Commat Namet Nodet BlankLinet symss0 (n='!=' | '==' | 'is' | n=comp_op< 'is' 'not' >)s( power< 'type' trailer< '(' x=any ')' > >t FixIdiomsc B sQ e Z e Z d e e e e f Z d � Z d � Z d � Z d � Z
d � Z RS( s�
isinstance=comparison< %s %s T=any >
|
isinstance=comparison< T=any %s %s >
|
while_stmt< 'while' while='1' ':' any+ >
|
sorted=any<
any*
simple_stmt<
expr_stmt< id1=any '='
power< list='list' trailer< '(' (not arglist<any+>) 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 C sO t t | � i | � } | o, d | j o | d | d j o | Sd S| S( Nt sortedt id1t id2( t superR t matcht None( t selft nodet r( ( s0 /usr/lib64/python2.6/lib2to3/fixes/fix_idioms.pyR P s c C sj d | j o | i | | � Sd | j o | i | | � Sd | j o | i | | � St d � � d S( Nt
isinstancet whileR s
Invalid match( t transform_isinstancet transform_whilet transform_sortt RuntimeError( R R t results( ( s0 /usr/lib64/python2.6/lib2to3/fixes/fix_idioms.pyt transform[ s
c C s� | d i � } | d i � } d | _ d | _ t t d � | t � | g � } d | j o+ d | _ t t i t d � | g � } n | i | _ | S( Nt xt Tu u u
isinstancet nu not( t clonet prefixR R R R R t not_test( R R R R R t test( ( s0 /usr/lib64/python2.6/lib2to3/fixes/fix_idioms.pyR e s !
"c C s* | d } | i t d d | i �� d S( NR u TrueR ( t replaceR R ( R R R t one( ( s0 /usr/lib64/python2.6/lib2to3/fixes/fix_idioms.pyR q s
c C s� | d } | d } | i d � } | i d � } | o | i t d d | i �� nU | oA | i � } d | _ | i t t d � | g d | i �� n
t d � � | i � | i } d | j o� | o: | i d � d
| d
i f } d i | � | d
_ q�| i
p t � | i d j p t � t � }
| i
i |
� | i |
j p t � | i d � d
|
_ n d S( Nt sortt nextt listt expru sortedR u s should not have reached hereu
i ( t getR R R R R R t removet
rpartitiont joint parentt AssertionErrort next_siblingR
R t append_child( R R R t sort_stmtt next_stmtt list_callt simple_exprt newt btwnt prefix_linest end_line( ( s0 /usr/lib64/python2.6/lib2to3/fixes/fix_idioms.pyR u s0
( t __name__t
__module__t Truet explicitt TYPEt CMPt PATTERNR R R R R ( ( ( s0 /usr/lib64/python2.6/lib2to3/fixes/fix_idioms.pyR % s '
N( t __doc__t R t
fixer_utilR R R R R R R; R: t BaseFixR ( ( ( s0 /usr/lib64/python2.6/lib2to3/fixes/fix_idioms.pyt <module> s
.