python (3.11.7)

(root)/
lib/
python3.11/
lib2to3/
__pycache__/
main.cpython-311.opt-2.pyc

eN.	ddlmZmZddlZddlZddlZddlZddlZddlZddl	m
Z
dZGdde
jZ
dZd
d	ZdS))with_statementprint_functionN)refactorc		|}|}tj||||dddS)Nz
(original)z(refactored))lineterm)
splitlinesdifflibunified_diff)abfilenames   @/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/lib2to3/main.py
diff_textsrsI/	A	A1h ,n)+----c:eZdZ		dfd	ZdZfdZdZxZS)StdoutRefactoringToolrc		||_||_|r.|tjs|tjz
}||_||_||_tt|
|||dSN)	nobackups
show_diffsendswithossep_input_base_dir_output_dir_append_suffixsuperr__init__)
selffixersoptionsexplicitrrinput_base_dir
output_dir
append_suffix	__class__s
         rr zStdoutRefactoringTool.__init__$s	$#$	%."9"9"&"A"A	%bf$N-%+
#T**33FGXNNNNNrcl|j|||f|jj|g|Ri|dSr)errorsappendloggererror)r!msgargskwargss    r	log_errorzStdoutRefactoringTool.log_errorAsJCv.///#/////////rc|}|jrt||jr@tj|j|t
|jd}ntd|d|j|jr
||jz
}||krktj	|}tj
|s|rtj||d|||j
s|dz}tj|r<	tj|n&#t $r|d|YnwxYw	tj||n'#t $r|d||YnwxYwt%t&|j}||||||j
st+j||||krt+j||dSdS)Nz	filename z( does not start with the input_base_dir zWriting converted %s to %s.z.bakzCan't remove backup %szCan't rename %s to %s)r
startswithrrpathjoinlen
ValueErrorrdirnameisdirmakedirslog_messagerlexistsremoveOSErrorrenamerr
write_fileshutilcopymode)
r!new_textrold_textencoding
orig_filenamer&backupwriter(s
         rr@z StdoutRefactoringTool.write_fileEsd 
	J""4#788
J7<<(8(0T5I1J1J1K1K(LNN!j)143G3G"IJJJ	,++HH$$22J7==,,
(
(J''':M%
'
'
'~	L&Fwv&&
GGIf%%%%GGG$$%=vFFFFFG
L	(F++++
L
L
L  !8(FKKKKK
L+T22=
h(H555~	.OFH---H$$OM844444%$s$-E E%$E%)E??!F#"F#c|r|d|dS|d||jrt|||}	|jU|j5|D]}t	|t
jdddn
#1swxYwYdSdS|D]}t	|dS#t$rtd|dYdSwxYwdS)NzNo changes to %sz
Refactored %szcouldn't encode z's diff for your terminal)
r;rroutput_lockprintsysstdoutflushUnicodeEncodeErrorwarn)r!oldnewrequal
diff_lineslines       rprint_outputz"StdoutRefactoringTool.print_outputls|	/:::::_h777
'S(;;
'3!-//(2,, %dJ,,...///////////////////
%/((D!$KKKK(()D"((%&&&FF

s<
B<3BB<BB<BB<&B<<CC)rrr)__name__
__module____qualname__r r1r@rV
__classcell__)r(s@rrrsBDOOOOOO:000%5%5%5%5%5NrrcBtd|tjdS)Nz	WARNING: file)rKrLstderr)r.s rrPrPs$	E33
 sz222222rc
	tjd}|dddd|dd	d
gd|d
ddddd|ddd
gd|dddd|dddd|dddd|d d!dd"|d#dd$|d%d&dd'|d(d)dd*d+|d,d-dd.d/d01|d2d3dd4|d5dd.d/d61d*}i}||\}}|jr"d7|d8<|jst
d9d7|_|jr|js|	d:|j
r|js|	d;|js|jrt
d<|js|jr|	d=|jr9td>tjD]}t||sd?S|s8td@t jAtdBt jAdCSdD|vr&d7}|jrtdEt jAdCS|jrd7|dF<|jrd7|dG<|jrt*jnt*j}t+jdH|It+jdJ}t5tj}	t5fdK|jD}
t5}|jrJd*}|jD]&}
|
dLkrd7}|dMz|
z'|r|	|n|}n|	|}| |
}tBj"#|}|r]|$tBj%s>tBj"&|stBj"'|}|jr;|(tBj%}|)dN|j|tUtW||tW||j|j||j|j
O}|j,s|r|-nZ	|||j|j.|j/n1#tj0$rtdPt jAYdSwxYw|1tetg|j,S)QNz2to3 [options] file|dir ...)usagez-dz--doctests_only
store_truezFix up doctests only)actionhelpz-fz--fixr+z1Each FIX specifies a transformation; default: all)rbdefaultrcz-jz--processesstorerintzRun 2to3 concurrently)rbrdtypercz-xz--nofixz'Prevent a transformation from being runz-lz--list-fixeszList available transformationsz-pz--print-functionz0Modify the grammar so that print() is a functionz-ez--exec-functionz/Modify the grammar so that exec() is a functionz-vz	--verbosezMore verbose loggingz
--no-diffsz#Don't show diffs of the refactoringz-wz--writezWrite back modified filesz-nz--nobackupsFz&Don't write backups for modified filesz-oz--output-dirstrrzXPut output files in this directory instead of overwriting the input files.  Requires -n.)rbrgrdrcz-Wz--write-unchanged-fileszYAlso write files even if no changes were required (useful with --output-dir); implies -w.z--add-suffixzuAppend this string to all output filenames. Requires -n if non-empty.  ex: --add-suffix='3' will generate .py3 files.Twrite_unchanged_filesz&--write-unchanged-files/-W implies -w.z%Can't use --output-dir/-o without -n.z"Can't use --add-suffix without -n.z@not writing files and not printing diffs; that's not very usefulzCan't use -n without -wz2Available transformations for the -f/--fix option:rz1At least one file or directory argument required.r\zUse --help to show usage.-zCan't write to stdin.r
exec_functionz%(name)s: %(message)s)formatlevelzlib2to3.mainc3(K|]}dz|zV
dS).fix_N).0fix	fixer_pkgs  r	<genexpr>zmain.<locals>.<genexpr>s-LLsW,s2LLLLLLrallrpz7Output in %r will mirror the input directory %r layout.)r%r&r'z+Sorry, -j isn't supported on this platform.)4optparseOptionParser
add_option
parse_argsrirHrPr&rr-
add_suffixno_diffs
list_fixesrKrget_all_fix_namesrLr^rrlverboseloggingDEBUGINFObasicConfig	getLoggersetget_fixers_from_packagenofixrsaddunion
differencerr4commonprefixrrr9r8rstripinforsortedr*refactor_stdin
doctests_only	processesMultiprocessingUnsupported	summarizerfbool)rtr/parserrflagsr#fixnamernr,avail_fixesunwanted_fixesr$all_presentrs	requestedfixer_namesr%rts`                 rmainrs
")F
G
G
GF
d-l1333
dGHbNPPP
dM'1 '>@@@
dIhDFFF
dN<;===
d.|MOOO
d-lLNNN
dK1333
l<@BBB
dIl6888
dM,CEEE
dN7 (NOOOd5lABBBnW5"GHHHNE%%d++MGT$)-%&}	;9:::
>'"3><===;'"3;9:::=QW-Q
OPPP=0W.0.///
BCCC1)<<		G'NNNN	1
A
SSSS
)
;;;;q
d{{=	)
;;;;1'"&&!%o%_>GMM',E6eDDDD

~
.
.Fh6yAABBKLLLLgmLLLLLNuuH{	0;	8	8Ce||"Y03677773>LK%%h///H		%%h//	&&~66KW))$//N9~66rv>>9

n--9
888'..rv66M&	8	8	8	;x(8(87#33))!,
.
.
.B9
	
D'-1F#-////6


C:''''qq	

	tBIs<'U$$*VVr)
__future__rrrLrrrrArwrrrMultiprocessRefactoringToolrrPrrqrr<module>rs65555555



				



---eeeeeH@eeeN333L L L L L L r