b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / lib2to3 /
Filename/usr/lib64/python2.6/lib2to3/main.pyo
Size6.43 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed20-Jun-2019 19:45
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc @�s©dZddklZddkZddkZddkZddkZddkZddkZddk l
Z
d�Z de
i fd��YZ
d �Zdd
�ZdS( s
Main program for 2to3.
iÿÿÿÿ(twith_statementNi(trefactorc C�s:|i�}|i�}ti||||dddd�S(s%Return a unified diff of two strings.s
(original)s (refactored)tlinetermt(t
splitlinestdifflibt unified_diff(tatbtfilename((s$/usr/lib64/python2.6/lib2to3/main.pyt
diff_textss
   tStdoutRefactoringToolcB�s2eZdZd�Zd�Zd�Zd�ZRS(s"
Prints output to stdout.
cC�s2||_||_tt|�i|||�dS(N(t nobackupst
show_diffstsuperR t__init__(tselftfixerstoptionstexplicitR R
((s$/usr/lib64/python2.6/lib2to3/main.pyRs  cO�s3|ii|||f�|ii|||�dS(N(terrorstappendtloggerterror(Rtmsgtargstkwargs((s$/usr/lib64/python2.6/lib2to3/main.pyt log_error$sc C�sô|ip£|d}tii|�o@yti|�Wqgtij
o}|id|�qgXnyti||�Wq­tij
o}|id||�q­Xntt |�i
}|||||�|ipt i ||�ndS(Ns.baksCan't remove backup %ssCan't rename %s to %s(
R tostpathtlexiststremoveRt log_messagetrenameRR t
write_filetshutiltcopymode(Rtnew_textR told_texttencodingtbackupterrtwrite((s$/usr/lib64/python2.6/lib2to3/main.pyR"(s


c
C�sã|o|id|�nÅ|id|�|ioªt|||�}yl|idj oB|iii�z'x|D] }|GHqvWtii �WdQXnx|D] }|GHq£WWqßt
j
ot d|f�dSXndS(NsNo changes to %ss
Refactored %ss+couldn't encode %s's diff for your terminal( R R
R
t output_locktNonet__exit__t __enter__tsyststdouttflushtUnicodeEncodeErrortwarn(RtoldtnewR tequalt
diff_linestline((s$/usr/lib64/python2.6/lib2to3/main.pyt print_output;s&
 
 (t__name__t
__module__t__doc__RRR"R9(((s$/usr/lib64/python2.6/lib2to3/main.pyR s
   cC�stid|fIJdS(Ns WARNING: %s(R/tstderr(R((s$/usr/lib64/python2.6/lib2to3/main.pyR3Qsc
�stidd�}|idddddd�|id d
dd d gdd
�|iddddd ddddd�|idddd d gdd�|idddddd�|idddddd�|idddddd �|id!dddd"�|id#d$dddd%�|id&d'ddd tdd(�t}h}|i|�\}}|i o|iotd)�n|i o|io|i d*�n|i
o4d+GHxt i ��D] }|GHqÎW|pd,Sn|pt
id-IJt
id.IJd/Sd0|jo&t}|iot
id1IJd/Sn|iot|d2<n|io
tinti}tid3d4d5|�tt i���}t�fd6�|iD��} t�}
|iogt} x=|iD]2} | d7jo
t} qè|
i�d8| �qèW| o|i|
�n|
}
n|i|
�}
|
i| �}tt|�|t|
�|i|i �}|ipm|o|i �nKy#|i ||i|i!|i"�Wn$t i#j
ot
id9IJdSX|i$�nt%t&|i��S(:sþMain program.

Args:
fixer_pkg: the name of a package where the fixers are located.
args: optional; a list of command line arguments. If omitted,
sys.argv[1:] is used.

Returns a suggested exit status (0, 1, 2).
tusages2to3 [options] file|dir ...s-ds--doctests_onlytactiont
store_truethelpsFix up doctests onlys-fs--fixRtdefaults1Each FIX specifies a transformation; default: alls-js --processeststoreittypetintsRun 2to3 concurrentlys-xs--nofixsPrevent a fixer from being run.s-ls --list-fixessList available transformationss-ps--print-functions0Modify the grammar so that print() is a functions-vs --verbosesMore verbose loggings
--no-diffss#Don't show diffs of the refactorings-ws--writesWrite back modified filess-ns --nobackupss'Don't write backups for modified files.s@not writing files and not printing diffs; that's not very usefulsCan't use -n without -ws2Available transformations for the -f/--fix option:is1At least one file or directory argument required.sUse --help to show usage.it-sCan't write to stdin.tprint_functiontformats%(name)s: %(message)stlevelc3�s!x|]}�d|VqWdS(s.fix_N((t.0tfix(t fixer_pkg(s$/usr/lib64/python2.6/lib2to3/main.pys <genexpr>�s talls.fix_s+Sorry, -j isn't supported on this platform.('toptparset OptionParsert
add_optiontFalset
parse_argsR*tno_diffsR3R Rt
list_fixesRtget_all_fix_namesR/R=tTrueRGtverbosetloggingtDEBUGtINFOt basicConfigtsettget_fixers_from_packagetnofixRKtaddtuniont
differenceR tsortedRtrefactor_stdint
doctests_onlyt processestMultiprocessingUnsupportedt summarizeREtbool(RLRtparserRctflagsRtfixnameRIt avail_fixestunwanted_fixesRt all_presentRKt requestedt fixer_namestrt((RLs$/usr/lib64/python2.6/lib2to3/main.pytmainUs� 

  




 
 



!

(R<t
__future__RR/RRRXR#RNRRR
tMultiprocessRefactoringToolR R3R,Rr(((s$/usr/lib64/python2.6/lib2to3/main.pyt<module>s       7