tjD] }t||sy?|s7td@t j"AtdBt j"AyCdD|vr*d7}|j rtdEt j"AyC|j$rd7|dF<|j&rd7|dG<|j(rt*j,nt*j.}t+j0dH|It+j2dJ}t5tj6} t5fdK|j8D} t5} |j:rHd*} |j:D]!} | dLk(rd7} | j=dMz| z#| r| j?| n| }n| j?| }|jA| }tBjDjG|}|r]|jItBjJs>tBjDjM|stBjDjO|}|jr<|jQtBjJ}|jSdN|j|tUtW||tW| |j|j ||j|jO}|jXsV|r|j[n3 |j||j |j\|j^|jctetg|jXS#tj`$r/|j^dkDsJtdPt j"AYywxYw)QzMain 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). z2to3 [options] file|dir ...)usagez-dz--doctests_only store_truezFix up doctests only)actionhelpz-fz--fixr+z1Each FIX specifies a transformation; default: all)rcdefaultrdz-jz --processesstorerintzRun 2to3 concurrently)rcretyperdz-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.)rcrhrerdz-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|zyw).fix_N).0fix fixer_pkgs r zmain..sLmsW,s2msallrqz7Output 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_argsrjrHrPr%rr- add_suffixno_diffs list_fixesrKrget_all_fix_namesrLr_rrmverboseloggingDEBUGINFO basicConfig getLoggersetget_fixers_from_packagenofixrtaddunion differencerr4 commonprefixrrr9r8rstripinforsortedr*refactor_stdin doctests_only processesMultiprocessingUnsupported summarizergbool)rur/parserrflagsr"fixnameror, avail_fixesunwanted_fixesr# all_presentrt requested fixer_namesr$rts` rmainrso " ")F GF d-l13 dGHbNP dM'1 '>@ dIhDF dN<;= d.|MO d-lLN dK 13 l<@B dIl68 dM,CE dN7 (NO d5lAB nW5"GH N E%%d+MGT$$)-%&}} 9 : '"3"3 <='"3"3 9: ==W-- OP ==W.. ./ BC11) n-8'..rvv6 M&& 8  ; x(8   7#3#33)))!,,  .B 99       D'--1F1F#--/  tBII 66 ((1,,,C::'  s:2V?WWr))rZ __future__rrrLrr rrArxrrrMultiprocessRefactoringToolrrPrrrrrrsI6  -eH@@eN3L r