GIF89a=( õ' 7IAXKgNgYvYx\%wh…hŽth%ˆs%—x¨}9®Œ©€&©‰%¶†(¹–.¹5·œD¹&Çš)ÇŸ5ǘ;Í£*È¡&Õ²)ׯ7×µ<Ñ»4ï°3ø‘HÖ§KͯT÷¨Yÿšqÿ»qÿÔFØ !ù ' !ÿ NETSCAPE2.0 , =( þÀ“pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§gª«ªE¯°¨¬ª±²Œ¹º¹E¾­”´ÂB¶¯ §Åȸ»ÑD¾¿Á•ÄÅ®° ÝH¾ÒLÀÆDÙ«D¶BÝïðÀ¾DÑÑÔTÌÍíH òGö¨A RÎڐ |¥ ٭&ºìE8œ¹kGÔAÞpx­a¶­ã R2XB®åE8I€Õ6Xî:vT)äžþÀq¦è³¥ì仕F~%xñ  4#ZÔ‰O|-4Bs‘X:= QÉ œš lºÒyXJŠGȦ|s hÏíK–3l7·B|¥$'7Jީܪ‰‡àá”Dæn=Pƒ ¤Òëí‰`䌨ljóá¯Éüv>á–Á¼5 ½.69ûϸd«­ºÀûnlv©‹ªîf{¬ÜãPbŸ  l5‘ޝpß ´ ˜3aÅùäI«O’ý·‘áÞ‡˜¾Æ‚ÙÏiÇÿ‹Àƒ #öó)pâš Þ½ ‘Ý{ó)vmÞü%D~ 6f s}ŃƒDØW Eþ`‡þ À…L8xá†ç˜{)x`X/> Ì}mø‚–RØ‘*|`D=‚Ø_ ^ð5 !_…'aä“OÚ—7âcð`D”Cx`ÝÂ¥ä‹éY¹—F¼¤¥Š?¡Õ™ n@`} lď’ÄÉ@4>ñd œ à‘vÒxNÃ×™@žd=ˆgsžG±æ ´²æud &p8Qñ)ˆ«lXD©øÜéAžHìySun jª×k*D¤LH] †¦§C™Jä–´Xb~ʪwStŽ6K,°£qÁœ:9ت:¨þªl¨@¡`‚ûÚ ».Û¬¯t‹ÆSÉ[:°=Š‹„‘Nåû”Ìî{¿ÂA ‡Rà›ÀÙ6úë°Ÿð0Ä_ ½;ÃϱîÉì^ÇÛÇ#Ëë¼ôº!±Ä˜íUîÅÇ;0L1óÁµö«p% AÀºU̬ݵ¼á%霼€‡¯Á~`ÏG¯»À× ­²± =4ªnpð3¾¤³¯­ü¾¦îuÙuµÙ®|%2ÊIÿür¦#0·ÔJ``8È@S@5ê¢ ö×Þ^`8EÜ]ý.뜃Âç 7 ú ȉÞj œ½Dç zý¸iþœÑÙûÄë!ˆÞÀl§Ïw‹*DçI€nEX¯¬¼ &A¬Go¼QföõFç°¯;é¦÷îŽêJ°îúôF5¡ÌQ|îúöXªæ»TÁÏyñêï]ê² o óÎC=öõ›ÒÓPB@ D×½œä(>èCÂxŽ`±«Ÿ–JЀ»Û á¤±p+eE0`ëŽ`A Ú/NE€Ø†À9‚@¤à H½7”à‡%B‰`Àl*ƒó‘–‡8 2ñ%¸ —€:Ù1Á‰E¸àux%nP1ð!‘ðC)¾P81lÑɸF#ˆ€{´âé°ÈB„0>±û °b¡Š´±O‚3È–Ù()yRpbµ¨E.Z‘D8ÊH@% òŒx+%Ù˜Æcü »¸˜fõ¬b·d`Fê™8èXH"ÉÈ-±|1Ô6iI, 2““¬$+](A*jÐ QTÂo‰.ÛU슬Œã„Ž`¯SN¡–¶Äåyše¯ª’­¬‚´b¦Éož œ)åyâ@Ì®3 ÎtT̉°&Ø+žLÀf"Ø-|žçÔ>‡Ðv¦Ðžì\‚ Q1)Ž@Žh#aP72”ˆ™¨$‚ !ù " , =( …7IAXG]KgNgYvYxR"k\%w]'}hŽth%ˆg+ˆs%—r.—m3šx3˜x¨}9®€&©€+¨‡7§‰%¶†(¹–.¹œD¹&ǘ;Í•&ײ)×»4ïÌ6ò§KÍ þ@‘pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g «¬ E ±± ¨­¶°ººE Á´”·®C¬²§Ç¶Œ»ÓDÃÕƷ¯Ê±H½ºM×ÁGÚ¬D¶BËÁ½î½DÓôTÏÛßîG»ôõC×CÌ l&âž:'òtU³6ɹ#·Ø)€'Ü.6±&ëÍÈ» K(8p0N?!æ2"ÛˆNIJX>R¼ÐO‚M '¡¨2¸*Ÿþ>#n↠å@‚<[:¡Iïf’ ¤TÚ˘CdbÜÙ“[«ŽEú5MBo¤×@€`@„€Êt W-3 ¶Ÿ¡BíêäjIÝ…Eò9[T…$íêﯧ„…•s»Óȳ¹€ÅÚdc®UUρ#±Ùïldj?´í¼²`\ŽÁðÞu|3'ÖŒ]ë6 ¶S#²‡˜FKLÈ *N E´‘áäŠ$˜›eÄYD„ºq«.è촁ƒs \-ÔjA 9²õ÷å- üúM[Âx(ís÷ì®x€|í¡Ù’p¦‚ ŽkÛTÇDpE@WÜ ²Ç]kŠ1¨ þ€·Yb ÓÁ‰l°*n0 ç™—žzBdОu¾7ĉBl€â‰-ºx~|UåU‰  h*Hœ|e"#"?vpÄiŠe6^ˆ„+qâŠm8 #VÇá ‘å–ÄV„œ|Аè•m"сœn|@›U¶ÆÎž—Špb¥G¨ED”€±Úê2FÌIç? >Éxå Œ± ¡¤„%‘žjŸ‘ꄯ<Ìaà9ijÐ2˜D¦È&›†Z`‚å]wþ¼Â:ç6àB¤7eFJ|õÒ§Õ,¨äàFÇ®cS·Ê¶+B°,‘Þ˜ºNûãØ>PADÌHD¹æž«ÄÀnÌ¥}­#Ë’ë QÀÉSÌÂÇ2ÌXÀ{æk²lQÁ2«ÊðÀ¯w|2Í h‹ÄÂG€,m¾¶ë3ÐÙ6-´ÅE¬L°ÆIij*K½ÀÇqï`DwVÍQXœÚÔpeœ±¬Ñ q˜§Tœ½µƒ°Œìu Â<¶aØ*At¯lmEØ ü ôÛN[P1ÔÛ¦­±$ÜÆ@`ùåDpy¶yXvCAyåB`ŽD¶ 0QwG#¯ æš[^Äþ $ÀÓÝǦ{„L™[±úKÄgÌ;ï£S~¹ìGX.ôgoT.»åˆ°ùŸûù¡?1zö¦Ÿž:ÅgÁ|ìL¹ „®£œŠ‚à0œ]PÁ^p F<"•ç?!,ñ‡N4—…PÄ Á„ö¨Û:Tè@hÀ‹%táÿ:ø-žI<`þ‹p I….)^ 40D#p@ƒj4–؀:²‰1Øâr˜¼F2oW¼#Z†;$Q q” ‘ ÂK¦ñNl#29 !’F@¥Bh·ᏀL!—XFóLH‘Kh¤.«hE&JòG¨¥<™WN!€ÑÙÚˆY„@†>Œž19J" 2,/ &.GXB%ÌRÈ9B6¹W]’î×ÔW¥’IÎ$ ñ‹ÓŒE8YÆ ¼³™ñA5“à®Q.aŸB€&Ø©³ JÁ—! ¦t)K%tœ-¦JF bòNMxLôþ)ÐR¸Ð™‘ èÝ6‘O!THÌ„HÛ ‰ !ù ) , =( …AXKgNgYvYxR"k\%wh…hŽh%ˆg+ˆs%—r.—x3˜x¨}9®€&©€+¨Œ,©‡7§‰%¶†(¹–.¹5·&Çš)ǘ;Í•&×£*Ȳ)ׯ7×»4ï°3øÌ6ò‘HÖ§KÍ»Hó¯T÷¨Yÿ»qÿÇhÿ þÀ”pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g ª« E$±²¨ª­ · °²½$E$ÂÕ««D· Í ¿¦Ç¶¸ÌŒ¾³CÃÅÆ E ééH½MÛÂGâªD­ çBêêϾD²ÒaÀà€Š1r­ðÓ¤ ÔožzU!L˜C'¾yW½UGtäÇïÙllê0×àÂuGþ)AÀs[þ·xì ÁxO%ƒûX2ó—  P£n›R/¡ÑšHše+êDm?# —‘Ç£6¡8íJ¡ŸâDiäªM¥Ö„ôj“¬¹£5oQ7°- <‡ *´lãÓŒ2r/a!l)dÈ A™ÈE¢ôÔ͆…ð ;Ö˜c ¡%ß‚’Ùˆâ¸b½—pe~C"BíëÚHïeF2§æŠ8qb t_`urŠeü wÅu3êæPv§h•"ß`íÍxçLĹÜÖ3á  ~Öº“®›¸ÏMDfJÙ °„ÛµáWõ%§œ‚à©–‚X ÓØ)@®Ñ›Eþ´wëuÅSxb8y\mÖzœ¥§ZbºE—ÂLªÌw!y(>¡™wú=Ç|ÅÝs¢d €CÁW)HÜcC$€L Ä7„r.á\{)@ð` @ äXÈ$PD” `šaG:§æˆOˆ72EÐamn]ù"ŒcÊxÑŒ° &dR8`g«iÙŸLR!¦P …d’ä¡“¦ðÎTƒ¦ià|À _ ¥ Qi#¦Šg›Æ ›noMµ ›V ã£)p ç£ÎW…š=Âeªk§†j„ ´®1ß²sÉxéW«jšl|0¯B0Û, \jÛ´›6±¬¶C ÛíWþï|ëÙ‹¸ñzĸV {ì;Ýñn¼òVˆm³I¼³.Ðã¤PN¥ ²µ¼„µCã+¹ÍByî£Ñ¾HŸ›ëê 7ìYÆFTk¨SaoaY$Dµœìï¿Ã29RÈkt Çïfñ ÇÒ:ÀÐSp¹3ÇI¨â¥DZÄ ü9Ïýögñ½­uÔ*3)O‘˜Ö[_hv ,àî×Et Ÿé¶BH€ Õ[ü±64M@ÔSÌM7dÐl5-ÄÙU܍´©zߌ3Ô€3ž„ „ ¶ÛPô½5×g› êÚ˜kN„Ý…0Îj4€Ìë°“#{þÕ3S2çKÜ'ợlø¼Ú2K{° {Û¶?žm𸧠ËI¼nEò='êüóºè^üæÃ_Û=°óž‚ì#Oý¿Í'¡½áo..ÏYìnüñCœO±Áa¿¢Kô½o,üÄËbö²çºíï{ËC Ú— "”Ï{ËK ÍÒw„õ±Oz dÕ¨à:$ ƒô—«v»] A#ð «€¿šéz)Rx׿ˆ¥‚d``èw-îyÏf×K!ð€þ­Ð|ìPľ„=Ì`ý(f” 'Pa ¥ÐBJa%Ðâf§„%Š¡}FàáÝ×6>ÉäŠG"éŽè=ø!oа^FP¼Ø©Q„ÀCÙÁ`(Ž\ÄÝ® ©Â$<n@dÄ E#ììUÒI! ‚#lù‹`k¦ÐÇ'Rró’ZýNBÈMF Í[¤+‹ðɈ-áwj¨¥þ8¾rá ,VÂh„"|½œ=×G_¦Ñ™EØ 0i*%̲˜Æda0mV‚k¾)›;„&6 p>ÓjK “¦Ç# âDÂ:ûc?:R Ó¬fÞéI-Ì“•Ã<ä=™Ï7˜3œ¨˜c2ŒW ,ˆ”8(T™P‰F¡Jhç"‚ ; 403WebShell
403Webshell
Server IP : 104.21.83.152  /  Your IP : 216.73.216.195
Web Server : LiteSpeed
System : Linux premium229.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : akhalid ( 749)
PHP Version : 8.3.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib64/python2.7/lib2to3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/python2.7/lib2to3/refactor.pyo
�
{fc@�s�dZddlmZdZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZddl
mZmZmZddlmZdd	lmZmZdd
lmZddlmZed�Zd
efd��YZd�Zd�Zd�Z d�Z!ej"ddfkrgddl#Z#e#j$Z%d�Z&d�Z'ne$Z%e!Z&e!Z'd�Z(defd��YZ)de*fd��YZ+defd��YZ,de+fd��YZ-dS( s�Refactoring framework.

Used as a main program, this can refactor any number of files and/or
recursively descend down directories.  Imported as a module, this
provides infrastructure to write your own refactoring tool.
i����(twith_statements#Guido van Rossum <[email protected]>N(tchaini(tdriverttokenizettoken(t	find_root(tpytreetpygram(t	btm_utils(tbtm_matchercC�szt|ggdg�}g}xUtj|j�D]A\}}}|jd�r1|rb|d}n|j|�q1q1W|S(sEReturn a sorted list of all available fix names in the given package.t*tfix_i(t
__import__tpkgutiltiter_modulest__path__t
startswithtappend(t	fixer_pkgt
remove_prefixtpkgt	fix_namestfindertnametispkg((s(/usr/lib64/python2.7/lib2to3/refactor.pytget_all_fix_names"s"
t
_EveryNodecB�seZRS((t__name__t
__module__(((s(/usr/lib64/python2.7/lib2to3/refactor.pyR.scC�s�t|tjtjf�rC|jdkr3t�nt|jg�St|tj�rt|j	rkt
|j	�St�nt|tj�r�t�}x5|j	D]*}x!|D]}|jt
|��q�Wq�W|St
d|��dS(sf Accepts a pytree Pattern Node and returns a set
        of the pattern types which will match first. s$Oh no! I don't understand pattern %sN(t
isinstanceRtNodePatterntLeafPatternttypetNoneRtsettNegatedPatterntcontentt_get_head_typestWildcardPatterntupdatet	Exception(tpattrtptx((s(/usr/lib64/python2.7/lib2to3/refactor.pyR%2s		
		
cC�stjt�}g}x�|D]�}|jr�yt|j�}Wntk
r^|j|�q�XxU|D]}||j|�qfWq|jdk	r�||jj|�q|j|�qWx:t	t
jjj
�t
jj�D]}||j|�q�Wt|�S(s^ Accepts a list of fixers and returns a dictionary
        of head node type --> fixer list.  N(tcollectionstdefaultdicttlisttpatternR%RRt_accept_typeR!RRtpython_grammart
symbol2numbert
itervaluesttokenstextendtdict(t
fixer_listt
head_nodesteverytfixertheadst	node_type((s(/usr/lib64/python2.7/lib2to3/refactor.pyt_get_headnode_dictNs"
	

cC�s(gt|t�D]}|d|^qS(sN
    Return the fully qualified names for fixers in the package pkg_name.
    t.(RtFalse(tpkg_nametfix_name((s(/usr/lib64/python2.7/lib2to3/refactor.pytget_fixers_from_packagegscC�s|S(N((tobj((s(/usr/lib64/python2.7/lib2to3/refactor.pyt	_identitynsiicC�s|jdd�S(Nu
u
(treplace(tinput((s(/usr/lib64/python2.7/lib2to3/refactor.pyt_from_system_newlinesuscC�s*tjdkr"|jdtj�S|SdS(Ns
u
(tostlinesepRF(RG((s(/usr/lib64/python2.7/lib2to3/refactor.pyt_to_system_newlineswsc�s�t}tjtj|�j���fd�}ttjtjtj	f�}t
�}ykxdtr�|�\}}||kr�q]q]|tjkr�|r�Pnt}q]|tj
kr�|dkr�|�\}}|tj
ks�|dkr�Pn|�\}}|tj
ks|dkrPn|�\}}|tjkrY|dkrY|�\}}nxa|tj
kr�|j|�|�\}}|tjks�|dkr�Pn|�\}}q\Wq]Pq]WWntk
r�nXt|�S(Nc�s�j�}|d|dfS(Nii(tnext(ttok(tgen(s(/usr/lib64/python2.7/lib2to3/refactor.pytadvance�sufromu
__future__uimportu(u,(R@Rtgenerate_tokenstStringIOtreadlinet	frozensetRtNEWLINEtNLtCOMMENTR"tTruetSTRINGtNAMEtOPtaddt
StopIteration(tsourcethave_docstringROtignoretfeaturesttptvalue((RNs(/usr/lib64/python2.7/lib2to3/refactor.pyt_detect_future_features�sD			
	
t
FixerErrorcB�seZdZRS(sA fixer could not be loaded.(RRt__doc__(((s(/usr/lib64/python2.7/lib2to3/refactor.pyRd�stRefactoringToolcB�s!eZied6ed6ZdZdZddd�Zd�Zd�Z	d�Z
d�Zd	�Zeed
�Z
eed�Zd�Zeed
�Zd�Zed�Zd�Zd�Zdedd�Zdd�ZdZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(tprint_functiontwrite_unchanged_filestFixRcC�s�||_|pg|_|jj�|_|dk	rI|jj|�n|jdretj|_	ntj
|_	|jjd�|_g|_
tjd�|_g|_t|_tj|j	dtjd|j�|_|j�\|_|_g|_tj�|_g|_g|_ x}t!|j|j�D]f}|j"rT|jj#|�q2||jkrv|jj$|�q2||jkr2|j j$|�q2q2Wt%|j�|_&t%|j �|_'dS(s�Initializer.

        Args:
            fixer_names: a list of fixers to import
            options: a dict with configuration.
            explicit: a list of fixers to run even if they are explicit.
        RgRhRftconverttloggerN((tfixerstexplicitt_default_optionstcopytoptionsR!R'Rt!python_grammar_no_print_statementtgrammarR2tgetRhterrorstloggingt	getLoggerRkt	fixer_logR@twroteRtDriverRRjt
get_fixerst	pre_ordert
post_ordertfilestbmt
BottomMatchertBMt
bmi_pre_ordertbmi_post_orderRt
BM_compatiblet	add_fixerRR>tbmi_pre_order_headstbmi_post_order_heads(tselftfixer_namesRpRmR;((s(/usr/lib64/python2.7/lib2to3/refactor.pyt__init__�s<	
								cC�s�g}g}x�|jD]�}t|iidg�}|jdd�d}|j|j�rr|t|j�}n|jd�}|jdjg|D]}|j	�^q��}yt
||�}	Wn'tk
r�td||f��nX|	|j
|j�}
|
jr?|jtk	r?||jkr?|jd|�qn|jd	|�|
jd
krn|j|
�q|
jdkr�|j|
�qtd|
j��qWtjd
�}|jd|�|jd|�||fS(sInspects the options to load the requested patterns and handlers.

        Returns:
          (pre_order, post_order), where pre_order is the list of fixers that
          want a pre-order AST traversal, and post_order is the list that want
          post-order traversal.
        R
R?ii����t_tsCan't find %s.%ssSkipping optional fixer: %ssAdding transformation: %stpretpostsIllegal fixer order: %rt	run_ordertkey(RlRtrsplitRtFILE_PREFIXtlentsplittCLASS_PREFIXtjointtitletgetattrtAttributeErrorRdRpRwRmRWtlog_messaget	log_debugtorderRtoperatort
attrgettertsort(R�tpre_order_fixerstpost_order_fixerstfix_mod_pathtmodRBtpartsR+t
class_namet	fix_classR;tkey_func((s(/usr/lib64/python2.7/lib2to3/refactor.pyRz�s8/
cO�s�dS(sCalled when an error occurs.N((R�tmsgtargstkwds((s(/usr/lib64/python2.7/lib2to3/refactor.pyt	log_errorscG�s'|r||}n|jj|�dS(sHook to log a message.N(Rktinfo(R�R�R�((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�s
cG�s'|r||}n|jj|�dS(N(Rktdebug(R�R�R�((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�s
cC�sdS(sTCalled with the old version, new version, and filename of a
        refactored file.N((R�told_texttnew_texttfilenametequal((s(/usr/lib64/python2.7/lib2to3/refactor.pytprint_output!scC�sPxI|D]A}tjj|�r5|j|||�q|j|||�qWdS(s)Refactor a list of files and directories.N(RItpathtisdirtrefactor_dirt
refactor_file(R�titemstwritet
doctests_onlytdir_or_file((s(/usr/lib64/python2.7/lib2to3/refactor.pytrefactor&s
cC�s�tjd}x�tj|�D]�\}}}|jd|�|j�|j�xe|D]]}|jd�rWtjj|�d|krWtjj||�}	|j	|	||�qWqWWg|D]}
|
jd�s�|
^q�|(qWdS(s�Descends down a directory and refactor every Python file found.

        Python files are assumed to have a .py extension.

        Files and subdirectories starting with '.' are skipped.
        tpysDescending into %sR?iN(
RItextseptwalkR�R�RR�tsplitextR�R�(R�tdir_nameR�R�tpy_exttdirpathtdirnamest	filenamesRtfullnametdn((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�/s



cC�s�yt|d�}Wn'tk
r<}|jd||�dSXztj|j�d}Wd|j�Xt|dd|��}t	|j
��|fSWdQXdS(sG
        Do our best to decode a Python source file correctly.
        trbsCan't open %s: %siNR*tencoding(NN(topentIOErrorR�R!Rtdetect_encodingRRtcloset_open_with_encodingRHtread(R�R�tfterrR�((s(/usr/lib64/python2.7/lib2to3/refactor.pyt_read_python_sourceCscC�s|j|�\}}|dkr%dS|d7}|r�|jd|�|j||�}|jsl||kr�|j|||||�q�|jd|�nc|j||�}|js�|r�|jr�|jt|�d |d|d|�n|jd|�dS(	sRefactors a file.Nu
sRefactoring doctests in %ssNo doctest changes in %si����R�R�sNo changes in %s(	R�R!R�trefactor_docstringRhtprocessed_filetrefactor_stringtwas_changedtunicode(R�R�R�R�RGR�toutputttree((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�Ss
cC�s�t|�}d|kr*tj|j_nzMy|jj|�}Wn0tk
ru}|jd||jj	|�dSXWd|j|j_X||_
|jd|�|j||�|S(sFRefactor a given input string.

        Args:
            data: a string holding the code to be refactored.
            name: a human-readable name for use in error/log messages.

        Returns:
            An AST corresponding to the refactored input stream; None if
            there were errors during the parse.
        RgsCan't parse %s: %s: %sNsRefactoring %s(
RcRRqRRrtparse_stringR(R�t	__class__Rtfuture_featuresR�t
refactor_tree(R�tdataRR`R�R�((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�js			cC�s�tjj�}|ro|jd�|j|d�}|jsI||kr_|j|d|�q�|jd�nS|j|d�}|js�|r�|jr�|jt	|�d|�n
|jd�dS(NsRefactoring doctests in stdins<stdin>sNo doctest changes in stdinsNo changes in stdin(
tsyststdinR�R�R�RhR�R�R�R�(R�R�RGR�R�((s(/usr/lib64/python2.7/lib2to3/refactor.pytrefactor_stdin�s
c
C�s�x-t|j|j�D]}|j||�qW|j|j|j��|j|j|j��|jj|j	��}x�t
|j��rcx�|jjD]�}||kr�||r�||j
dtjjdt�|jr�||j
dtjj�nx[t||�D]F}|||kr9||j|�nyt|�Wntk
r]qnX|jr|||jkr|qn|j|�}|r|j||�}|dk	rU|j|�x9|j�D]+}|js�g|_n|jj|�q�W|jj|j	��}x?|D]4}	|	|kr6g||	<n||	j||	�qWqUqqWq�q�Wq}Wx-t|j|j�D]}|j||�qzW|j S(s�Refactors a parse tree (modifying the tree in place).

        For compatible patterns the bottom matcher module is
        used. Otherwise the tree is traversed node-to-node for
        matches.

        Args:
            tree: a pytree.Node instance representing the root of the tree
                  to be refactored.
            name: a human-readable name for this tree.

        Returns:
            True if the tree was modified, False otherwise.
        R�treverseN(!RR{R|t
start_treettraverse_byR�R�R�truntleavestanytvaluesRlR�RtBasetdepthRWtkeep_line_ordert
get_linenoR/tremoveRt
ValueErrortfixers_appliedtmatcht	transformR!RFRR6tfinish_treeR�(
R�R�RR;t	match_settnodetresultstnewtnew_matchestfxr((s(/usr/lib64/python2.7/lib2to3/refactor.pyR��sJ 	

	

.cC�s�|s
dSxr|D]j}xa||jD]R}|j|�}|r%|j||�}|dk	rw|j|�|}qwq%q%WqWdS(sTraverse an AST, applying a set of fixers to each node.

        This is a helper method for refactor_tree().

        Args:
            fixers: a list of fixer instances.
            traversal: a generator that yields AST nodes.

        Returns:
            None
        N(R R�R�R!RF(R�Rlt	traversalR�R;R�R�((s(/usr/lib64/python2.7/lib2to3/refactor.pyR��s

cC�s�|jj|�|dkrB|j|�d}|dkrBdSn||k}|j||||�|r�|jd|�|js�dSn|r�|j||||�n|jd|�dS(sR
        Called when a file has been refactored and there may be changes.
        iNsNo changes to %ssNot writing changes to %s(R}RR!R�R�R�Rht
write_file(R�R�R�R�R�R�R�((s(/usr/lib64/python2.7/lib2to3/refactor.pyR��s	cC�s�yt|dd|�}Wn*tjk
rE}|jd||�dSXzGy|jt|��Wn)tjk
r�}|jd||�nXWd|j�X|jd|�t|_	dS(s�Writes a string to a file.

        It first shows a unified diff between the old text and the new text, and
        then rewrites the file; the latter is only done if the write option is
        set.
        twR�sCan't create %s: %sNsCan't write %s: %ssWrote changes to %s(
R�RIterrorR�R�RKR�R�RWRx(R�R�R�R�R�R�R�((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�ss>>> s... c
C�s�g}d}d}d}d}x+|jt�D]}|d7}|j�j|j�r�|dk	r�|j|j||||��n|}|g}|j|j�}	||	 }q.|dk	r|j||j	�s�|||j	j
�dkr|j|�q.|dk	r/|j|j||||��nd}d}|j|�q.W|dk	rz|j|j||||��ndj|�S(s�Refactors a docstring, looking for doctests.

        This returns a modified version of the input string.  It looks
        for doctests, which start with a ">>>" prompt, and may be
        continued with "..." prompts, as long as the "..." is indented
        the same as the ">>>".

        (Unfortunately we can't use the doctest module's parser,
        since, like most parsers, it is not geared towards preserving
        the original source.)
        iiu
uN(
R!t
splitlinesRWtlstripRtPS1R6trefactor_doctesttfindtPS2trstripRR�(
R�RGR�tresulttblocktblock_linenotindenttlinenotlineti((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�(s:
	
c
C�sPy|j|||�}Wnutk
r�}|jjtj�rmx*|D]}|jd|jd��qGWn|jd|||j	j
|�|SX|j||�rLt|�j
t�}||d ||d}	}|djd�s�|dcd7<n||j|jd�g}|rL|g|D]}||j|^q(7}qLn|S(s�Refactors one doctest.

        A doctest is given as a block of lines, the first of which starts
        with ">>>" (possibly indented), while the remaining lines start
        with "..." (identically indented).

        s
Source: %su
s+Can't parse docstring in %s line %s: %s: %sii����i(tparse_blockR(RktisEnabledForRutDEBUGR�RR�R�RR�R�R�RWtendswithR�tpopR(
R�RRRR�R�R�RR�tclipped((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�Ss$
 	.cC�s|jrd}nd}|js4|jd|�n1|jd|�x|jD]}|j|�qNW|jr�|jd�x!|jD]}|j|�q�Wn|jrt|j�dkr�|jd�n|jdt|j��x0|jD]"\}}}|j|||�q�WndS(	Ntweres
need to besNo files %s modified.sFiles that %s modified:s$Warnings/messages while refactoring:isThere was 1 error:sThere were %d errors:(RxR}R�RwRtR�(R�RtfiletmessageR�R�R�((s(/usr/lib64/python2.7/lib2to3/refactor.pyt	summarizeps$				
	cC�s1|jj|j|||��}t�|_|S(s�Parses a block into a tree.

        This is necessary to get correct line number / offset information
        in the parser diagnostics and embedded into the parse tree.
        (Rtparse_tokenst	wrap_toksRSR�(R�RRRR�((s(/usr/lib64/python2.7/lib2to3/refactor.pyR	�s!cc�s�tj|j||�j�}xe|D]]\}}\}}\}	}
}||d7}|	|d7}	||||f|	|
f|fVq%WdS(s;Wraps a tokenize stream to systematically modify start/end.iN(RRPt	gen_linesRL(R�RRRR5R Rbtline0tcol0tline1tcol1t	line_text((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�s
(cc�s�||j}||j}|}xi|D]a}|j|�rN|t|�Vn4||j�dkrldVntd||f��|}q'Wxtr�dVq�WdS(s�Generates lines as expected by tokenize from a list of lines.

        This strips the first len(indent + self.PS1) characters off each line.
        u
sline=%r, prefix=%rR�N(R�RRR�RtAssertionErrorRW(R�RRtprefix1tprefix2tprefixR((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�s



	N(RRR@RnR�R�R!R�RzR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RR�R�RR	RR(((s(/usr/lib64/python2.7/lib2to3/refactor.pyRf�s:

4	(								O		+			
	tMultiprocessingUnsupportedcB�seZRS((RR(((s(/usr/lib64/python2.7/lib2to3/refactor.pyR�stMultiprocessRefactoringToolcB�s5eZd�Zeedd�Zd�Zd�ZRS(cO�s/tt|�j||�d|_d|_dS(N(tsuperR R�R!tqueuetoutput_lock(R�R�tkwargs((s(/usr/lib64/python2.7/lib2to3/refactor.pyR��s	ic	C�sf|dkr(tt|�j|||�Syddl}Wntk
rQt�nX|jdk	rptd��n|j	�|_|j
�|_gt|�D]}|j
d|j�^q�}z;x|D]}|j�q�Wtt|�j|||�Wd|jj�x$t|�D]}|jjd�qWx'|D]}|j�r5|j�q5q5Wd|_XdS(Nii����s already doing multiple processesttarget(R!R R�tmultiprocessingtImportErrorRR"R!tRuntimeErrort
JoinableQueuetLockR#txrangetProcesst_childtstartR�tputtis_alive(	R�R�R�R�t
num_processesR&Rt	processesR+((s(/usr/lib64/python2.7/lib2to3/refactor.pyR��s2


+


cC�so|jj�}xY|dk	rj|\}}ztt|�j||�Wd|jj�X|jj�}qWdS(N(R"RsR!R!R R�t	task_done(R�ttaskR�R$((s(/usr/lib64/python2.7/lib2to3/refactor.pyR-�scO�sE|jdk	r(|jj||f�ntt|�j||�SdS(N(R"R!R/R!R R�(R�R�R$((s(/usr/lib64/python2.7/lib2to3/refactor.pyR��s(RRR�R@R�R-R�(((s(/usr/lib64/python2.7/lib2to3/refactor.pyR �s
		(.Ret
__future__Rt
__author__RIR
R�RuR�R-RQt	itertoolsRtpgen2RRRt
fixer_utilRR�RRRtbuR	R~RWRR(RR%R>RCREtversion_infotcodecsR�R�RHRKRcRdtobjectRfRR (((s(/usr/lib64/python2.7/lib2to3/refactor.pyt<module>	sH							(��

Youez - 2016 - github.com/yon3zu
LinuXploit