ACC SHELL

Path : /usr/lib/python/lib2to3/
File Upload :
Current File : //usr/lib/python/lib2to3/main.pyc

Ñò
sÄMc
@s™dZddkZddkZddkZddkZddkZddkZddklZd„Z	dei
fd„ƒYZd„Zdd	„ZdS(
s
Main program for 2to3.
iÿÿÿÿNi(trefactorc	Cs:|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/lib/python2.6/lib2to3/main.pyt
diff_textss
	tStdoutRefactoringToolcBs2eZdZd„Zd„Zd„Zd„ZRS(s"
    Prints output to stdout.
    cCs2||_||_tt|ƒi|||ƒdS(N(t	nobackupst
show_diffstsuperR
t__init__(tselftfixerstoptionstexplicitRR((s"/usr/lib/python2.6/lib2to3/main.pyRs		cOs3|ii|||fƒ|ii|||ŽdS(N(terrorstappendtloggerterror(Rtmsgtargstkwargs((s"/usr/lib/python2.6/lib2to3/main.pyt	log_error"scCsô|ip£|d}tii|ƒo@yti|ƒWqgtij
o}|id|ƒqgXnyti||ƒWq­tij
o}|id||ƒq­Xntt	|ƒi
}|||||ƒ|ipti||ƒndS(Ns.baksCan't remove backup %ssCan't rename %s to %s(
RtostpathtlexiststremoveRtlog_messagetrenameR
R
t
write_filetshutiltcopymode(Rtnew_textRtold_texttencodingtbackupterrtwrite((s"/usr/lib/python2.6/lib2to3/main.pyR!&s


cCs‘|o|id|ƒns|id|ƒ|ioXt|||ƒ}yx|D]}|GHqQWWqtj
otd|fƒdSXndS(NsNo changes to %ss
Refactored %ss+couldn't encode %s's diff for your terminal(RRR	tUnicodeEncodeErrortwarn(RtoldtnewRtequalt
diff_linestline((s"/usr/lib/python2.6/lib2to3/main.pytprint_output9s

(t__name__t
__module__t__doc__RRR!R1(((s"/usr/lib/python2.6/lib2to3/main.pyR
s
			cCstid|fIJdS(NsWARNING: %s(tsyststderr(R((s"/usr/lib/python2.6/lib2to3/main.pyR+Isc
s)tiddƒ}|iddddddƒ|id	d
dddgdd
ƒ|iddddddddddƒ|iddddd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+GHxtiˆƒD]}|GHqÎW|pd,Sn|pt
id-IJt
id.IJd/Sd0|jo&t}|iot
id1IJd/Sn|iot|d2<n|io
tinti}tid3d4d5|ƒttiˆƒƒ}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ƒ}|ip„|o|i ƒnby#|i||i|i!|i"ƒWn;ti#j
o,|i"djpt$‚t
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-fixess/List available transformations (fixes/fix_*.py)s-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)stlevelc3s!x|]}ˆd|VqWdS(s.fix_N((t.0tfix(t	fixer_pkg(s"/usr/lib/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_diffsR+RRt
list_fixesRtget_all_fix_namesR5R6tTrueR@tverbosetloggingtDEBUGtINFOtbasicConfigtsettget_fixers_from_packagetnofixRDtaddtuniont
differenceR
tsortedRtrefactor_stdint
doctests_onlyt	processestMultiprocessingUnsupportedtAssertionErrort	summarizeR>tbool(RERtparserR\tflagsRtfixnameRBtavail_fixestunwanted_fixesRtall_presentRDt	requestedtfixer_namestrt((REs"/usr/lib/python2.6/lib2to3/main.pytmainMs–

		




	
	



!

(R4R5RRRQR"RGRRR	tMultiprocessRefactoringToolR
R+tNoneRl(((s"/usr/lib/python2.6/lib2to3/main.pyt<module>s		1	

ACC SHELL 2018