Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
ZMc@sdZddklZddklZlZddklZddk l Z dZ dZ dZ d Zd1d Zd Zd Zd Ze e dZd1d1dZdZdZd1dZdZd1dZd1dZdZdZdZdZe ddddddd d!d"g Z!d#Z"d$a#d%a$d&a%e&a'd'Z(d(Z)d)Z*d*Z+d+Z,d,Z-d-Z.e ei/ei0gZ1d1d.Z2e ei0ei/ei3gZ4d/Z5d1d0Z6d1S(2s1Utility functions, node construction macros, etc.i(ttoken(tLeaftNode(tpython_symbols(tpatcompcCs%tti|ttid|gS(Nu=(RtsymstargumentRRtEQUAL(tkeywordtvalue((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt KeywordArgs cCsttidS(Nu((RRtLPAR(((s(/usr/lib/python2.6/lib2to3/fixer_util.pytLParenscCsttidS(Nu)(RRtRPAR(((s(/usr/lib/python2.6/lib2to3/fixer_util.pytRParenscCspt|tp |g}nt|tpd|_|g}ntti|ttidddg|S(sBuild an assignment statementu u=tprefix( t isinstancetlistRRRtatomRRR(ttargettsource((s(/usr/lib/python2.6/lib2to3/fixer_util.pytAssigns    cCstti|d|S(sReturn a NAME leafR(RRtNAME(tnameR((s(/usr/lib/python2.6/lib2to3/fixer_util.pytName$scCs|ttit|ggS(sA node tuple for obj.attr(RRttrailertDot(tobjtattr((s(/usr/lib/python2.6/lib2to3/fixer_util.pytAttr(scCsttidS(s A comma leafu,(RRtCOMMA(((s(/usr/lib/python2.6/lib2to3/fixer_util.pytComma,scCsttidS(sA period (.) leafu.(RRtDOT(((s(/usr/lib/python2.6/lib2to3/fixer_util.pyR0scCsOtti|i|ig}|o |idtti|n|S(s-A parenthesised argument list, used by Call()i(RRRtclonet insert_childtarglist(targstlparentrparentnode((s(/usr/lib/python2.6/lib2to3/fixer_util.pytArgList4s$ cCs<tti|t|g}|dj o ||_n|S(sA function callN(RRtpowerR(tNoneR(t func_nameR$RR'((s(/usr/lib/python2.6/lib2to3/fixer_util.pytCall;s  cCsttidS(sA newline literalu (RRtNEWLINE(((s(/usr/lib/python2.6/lib2to3/fixer_util.pytNewlineBscCsttidS(s A blank lineu(RRR-(((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt BlankLineFscCstti|d|S(NR(RRtNUMBER(tnR((s(/usr/lib/python2.6/lib2to3/fixer_util.pytNumberJscCs1ttittid|ttidgS(sA numeric or string subscriptu[u](RRRRRtLBRACEtRBRACE(t index_node((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt SubscriptMscCstti|d|S(s A string leafR(RRtSTRING(tstringR((s(/usr/lib/python2.6/lib2to3/fixer_util.pytStringSsc Csd|_d|_d|_ttid}d|_ttid}d|_||||g}|oGd|_ttid}d|_|itti||gntti|tti |g}tti tti d|tti dgS(suA list comprehension of the form [xp for fp in it if test]. If test is None, the "if test" part is omitted. uu uforuinuifu[u]( RRRRtappendRRtcomp_ift listmakertcomp_forRR3R4( txptfptitttesttfor_leaftin_leaft inner_argstif_leaftinner((s(/usr/lib/python2.6/lib2to3/fixer_util.pytListCompWs$       #$ c Csx|D]}|iqWttidtti|ddttidddtti|g}tti|}|S(sO Return an import statement in the form: from package import name_leafsufromRu uimport(tremoveRRRRRtimport_as_namest import_from(t package_namet name_leafstleaftchildrentimp((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt FromImportoscCst|to!|ittgjotSt|tot|idjopt|idtoYt|idtoBt|idto+|ididjo|ididjS(s(Does the node represent a tuple literal?iiiiu(u)( RRRNR RtTruetlenRR (R'((s(/usr/lib/python2.6/lib2to3/fixer_util.pytis_tuples,cCst|toot|idjoYt|idtoBt|idto+|ididjo|ididjS(s'Does the node represent a list literal?iiiu[u](RRRRRNRR (R'((s(/usr/lib/python2.6/lib2to3/fixer_util.pytis_lists cCsttit|tgS(N(RRRR R(R'((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt parenthesizestsortedRtsettanytallttupletsumtmintmaxccs6t||}x |o|Vt||}qWdS(slFollow an attribute chain. If you have a chain of objects where a.foo -> b, b.foo-> c, etc, use this to iterate over all objects in the chain. Iteration is terminated by getattr(x, attr) is None. Args: obj: the starting object attr: the name of the chaining attribute Yields: Each successive object in the chain. N(tgetattr(RRtnext((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt attr_chains sefor_stmt< 'for' any 'in' node=any ':' any* > | comp_for< 'for' any 'in' node=any any* > s power< ( 'iter' | 'list' | 'tuple' | 'sorted' | 'set' | 'sum' | 'any' | 'all' | (any* trailer< '.' 'join' >) ) trailer< '(' node=any ')' > any* > sN power< 'sorted' trailer< '(' arglist ')' > any* > cCstp7titatitatitatantttg}xUt|t|dD];\}}h}|i ||o|d|jotSqfWt S(s Returns true if node is in an environment where all that is required of it is being itterable (ie, it doesn't matter if it returns a list or an itterator). See test_map_nochange in test_fixers.py for some examples and tests. tparentR'( t pats_builtRtcompile_patterntp1tp0tp2RQtzipR`tmatchtFalse(R'tpatternstpatternRatresults((s(/usr/lib/python2.6/lib2to3/fixer_util.pytin_special_contexts  $ cCs|i}|dj o|itijotS|i}|ititi fjotS|iti jo|i d|jotS|iti jpG|iti jo9|dj o|itijp|i d|jotStS(sG Check that something isn't an attribute or function name etc. iN(t prev_siblingR*ttypeRR RiRaRtfuncdeftclassdeft expr_stmtRNt parameterst typedargslistRRQ(R'tprevRa((s(/usr/lib/python2.6/lib2to3/fixer_util.pytis_probably_builtins   ' cCsY|itijo|S|i}|id}|_tti|g}||_|S(N(RoRtsuiteR!RaR*R(R'RaRw((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt make_suites  cCs<x5|itijo!|ip td|i}qW|S(sFind the top level namespace.s<Tree is insane! root found before file_input node was found.(RoRt file_inputRatAssertionError(R'((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt find_roots cCs"t|t||}t|S(s Returns true if name is imported from package at the top level of the tree which node belongs to. To cover the case of an import like 'import foo', use None for the package and 'foo' for the name. (t find_bindingR{tbool(tpackageRR'tbinding((s(/usr/lib/python2.6/lib2to3/fixer_util.pytdoes_tree_importscCs|ititifjS(s0Returns true if the node is an import statement.(RoRt import_nameRJ(R'((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt is_importsc Csd}t|}t|||odSd}}xrt|iD]a\}}||pqGnx3t|i|D]\}}||pPq{q{W||}PqGW|djojxgt|iD]R\}}|itijo3|io)|iditijo|d}PqqWn|djo:t ti t ti dt ti |ddg} n%t|t ti |ddg} | tg} |i|t ti| dS(s\ Works like `does_tree_import` but adds an import statement if it was not imported. cSs.|itijo|iot|idS(Ni(RoRt simple_stmtRNR(R'((s(/usr/lib/python2.6/lib2to3/fixer_util.pytis_import_stmtsNiiuimportRu (R{Rt enumerateRNRoRRRR7R*RRRRRPR.R"( R~RR'Rtroott insert_postoffsettidxtnode2timport_RN((s(/usr/lib/python2.6/lib2to3/fixer_util.pyt touch_imports:               "$c Csoxh|iD]]}d}|itijoPt||ido|St|t|id|}|o |}q>n|ititi fjo4t|t|id|}|o |}q>nv|iti jot|t|id|}|o |}q>x/t |idD]g\}}|it i joH|idjo8t|t|i|d|}|o |}qq q Wn|itjo!|idi|jo |}nt|||o |}nb|itijot|||}n9|itijo%t||ido |}q>n|o"|p|St|o|Sq q WdS( s Returns the node which binds variable name, otherwise None. If optional argument package is supplied, only imports will be returned. See test cases for examples.iiiit:iiN(RNR*RoRtfor_stmtt_findR|Rxtif_stmtt while_stmtttry_stmtRRtCOLONR t _def_symst_is_import_bindingRRrR(RR'R~tchildtretR1titkid((s(/usr/lib/python2.6/lib2to3/fixer_util.pyR|HsL   ##'    cCs|g}xt|ol|i}|idjo$|itjo|i|iq |itijo|i|jo|Sq WdS(Ni( tpopRot _block_symstextendRNRRR R*(RR'tnodes((s(/usr/lib/python2.6/lib2to3/fixer_util.pyRss   # cCsQ|itijo| o |id}|itijosx|iD]a}|itijo |idi|jo|SqE|itijo|i|jo|SqEWqM|itijo9|id}|itijo|i|jo|SqM|itijo|i|jo|Sn(|iti jo|o%t |idi |jodS|id}|ot d|odS|itijot ||o|S|itijo9|id}|itijo|i|jo|SqM|itijo|i|jo|S|o|itijo|SndS(s Will reuturn node if node will import name, or node will import * from package. None is returned otherwise. See test cases for examples. iiiiuasN(RoRRRNtdotted_as_namestdotted_as_nameR RRRJtunicodetstripR*RRItimport_as_nametSTAR(R'RR~RORtlastR1((s(/usr/lib/python2.6/lib2to3/fixer_util.pyR}sB   #  # # ' # # # N(7t__doc__tpgen2RtpytreeRRtpygramRRtRR R RRR*RRRRR(R,R.R/R2R6R9RGRPRSRTRURWtconsuming_callsR`ReRdRfRiRbRmRvRxR{RRRRqRpRR|RRRR(((s(/usr/lib/python2.6/lib2to3/fixer_util.pytsV                      - *