/usr/lib64/python2.6/Tools/scripts
NameSizeModeActions
byext.py39190755editdlrm
byext.pyc44650644editdlrm
byext.pyo44650644editdlrm
byteyears.py16410755editdlrm
byteyears.pyc14160644editdlrm
byteyears.pyo14160644editdlrm
checkappend.py46610755editdlrm
checkappend.pyc49520644editdlrm
checkappend.pyo49520644editdlrm
checkpyc.py20140755editdlrm
checkpyc.pyc20110644editdlrm
checkpyc.pyo20110644editdlrm
classfix.py59560755editdlrm
classfix.pyc42540644editdlrm
classfix.pyo42540644editdlrm
cleanfuture.py85810755editdlrm
cleanfuture.pyc75100644editdlrm
cleanfuture.pyo74750644editdlrm
combinerefs.py43840755editdlrm
combinerefs.pyc42760644editdlrm
combinerefs.pyo42410644editdlrm
copytime.py6670755editdlrm
copytime.pyc9450644editdlrm
copytime.pyo9450644editdlrm
crlf.py6140755editdlrm
crlf.pyc8650644editdlrm
crlf.pyo8650644editdlrm
cvsfiles.py17900755editdlrm
cvsfiles.pyc21970644editdlrm
cvsfiles.pyo21970644editdlrm
db2pickle.py35740755editdlrm
db2pickle.pyc35520644editdlrm
db2pickle.pyo35520644editdlrm
diff.py20020644editdlrm
diff.pyc23580644editdlrm
diff.pyo23580644editdlrm
dutree.py16190755editdlrm
dutree.pyc22660644editdlrm
dutree.pyo22660644editdlrm
eptags.py14870755editdlrm
eptags.pyc18850644editdlrm
eptags.pyo18850644editdlrm
finddiv.py25210755editdlrm
finddiv.pyc33320644editdlrm
finddiv.pyo33320644editdlrm
findlinksto.py10730755editdlrm
findlinksto.pyc14430644editdlrm
findlinksto.pyo14430644editdlrm
findnocoding.py27110755editdlrm
findnocoding.pyc31480644editdlrm
findnocoding.pyo31480644editdlrm
fixcid.py99880755editdlrm
fixcid.pyc79690644editdlrm
fixcid.pyo79690644editdlrm
fixdiv.py139030755editdlrm
fixdiv.pyc141700644editdlrm
fixdiv.pyo140800644editdlrm
fixheader.py11930755editdlrm
fixheader.pyc14860644editdlrm
fixheader.pyo14860644editdlrm
fixnotice.py30540755editdlrm
fixnotice.pyc35280644editdlrm
fixnotice.pyo35280644editdlrm
fixps.py8970755editdlrm
fixps.pyc9770644editdlrm
fixps.pyo9770644editdlrm
ftpmirror.py128570755editdlrm
ftpmirror.pyc112910644editdlrm
ftpmirror.pyo112910644editdlrm
google.py5230755editdlrm
google.pyc8020644editdlrm
google.pyo8020644editdlrm
gprof2html.py21710755editdlrm
gprof2html.pyc23110644editdlrm
gprof2html.pyo23110644editdlrm
h2py.py57530755editdlrm
h2py.pyc43440644editdlrm
h2py.pyo43440644editdlrm
hotshotmain.py14870755editdlrm
hotshotmain.pyc18670644editdlrm
hotshotmain.pyo18670644editdlrm
ifdef.py37200755editdlrm
ifdef.pyc23310644editdlrm
ifdef.pyo23310644editdlrm
lfcr.py6220755editdlrm
lfcr.pyc8900644editdlrm
lfcr.pyo8900644editdlrm
linktree.py24280755editdlrm
linktree.pyc20550644editdlrm
linktree.pyo20550644editdlrm
lll.py7500755editdlrm
lll.pyc9630644editdlrm
lll.pyo9630644editdlrm
logmerge.py55790755editdlrm
logmerge.pyc51630644editdlrm
logmerge.pyo51630644editdlrm
mailerdaemon.py79200644editdlrm
mailerdaemon.pyc74450644editdlrm
mailerdaemon.pyo74450644editdlrm
md5sum.py23890755editdlrm
md5sum.pyc29560644editdlrm
md5sum.pyo29560644editdlrm
methfix.py54660755editdlrm
methfix.pyc41940644editdlrm
methfix.pyo41940644editdlrm
mkreal.py16310755editdlrm
mkreal.pyc19970644editdlrm
mkreal.pyo19970644editdlrm
ndiff.py38120755editdlrm
ndiff.pyc38910644editdlrm
ndiff.pyo38910644editdlrm
nm2def.py24470755editdlrm
nm2def.pyc29990644editdlrm
nm2def.pyo29990644editdlrm
objgraph.py60210755editdlrm
objgraph.pyc50160644editdlrm
objgraph.pyo50160644editdlrm
parseentities.py17230755editdlrm
parseentities.pyc20920644editdlrm
parseentities.pyo20920644editdlrm
patchcheck.py26440644editdlrm
patchcheck.pyc40330644editdlrm
patchcheck.pyo40330644editdlrm
pathfix.py48190755editdlrm
pathfix.pyc42610644editdlrm
pathfix.pyo42610644editdlrm
pdeps.py39400755editdlrm
pdeps.pyc32770644editdlrm
pdeps.pyo32770644editdlrm
pickle2db.py39460755editdlrm
pickle2db.pyc38750644editdlrm
pickle2db.pyo38750644editdlrm
pindent.py179000755editdlrm
pindent.pyc130200644editdlrm
pindent.pyo130200644editdlrm
ptags.py12280755editdlrm
ptags.pyc14200644editdlrm
ptags.pyo14200644editdlrm
pysource.py38500755editdlrm
pysource.pyc40570644editdlrm
pysource.pyo40570644editdlrm
redemo.py57690644editdlrm
redemo.pyc52800644editdlrm
redemo.pyo52800644editdlrm
reindent-rst.py8410755editdlrm
reindent-rst.pyc11490644editdlrm
reindent-rst.pyo11490644editdlrm
reindent.py104930755editdlrm
reindent.pyc89100644editdlrm
reindent.pyo88690644editdlrm
rgrep.py14960755editdlrm
rgrep.pyc19090644editdlrm
rgrep.pyo19090644editdlrm
setup.py4210644editdlrm
setup.pyc5500644editdlrm
setup.pyo5500644editdlrm
suff.py6250755editdlrm
suff.pyc9160644editdlrm
suff.pyo9160644editdlrm
svneol.py29340755editdlrm
svneol.pyc29270644editdlrm
svneol.pyo28440644editdlrm
texcheck.py92560644editdlrm
texcheck.pyc84830644editdlrm
texcheck.pyo84830644editdlrm
texi2html.py698270755editdlrm
texi2html.pyc838690644editdlrm
texi2html.pyo838690644editdlrm
treesync.py57870755editdlrm
treesync.pyc60730644editdlrm
treesync.pyo60730644editdlrm
untabify.py11880755editdlrm
untabify.pyc15710644editdlrm
untabify.pyo15710644editdlrm
which.py16340755editdlrm
which.pyc16590644editdlrm
which.pyo16590644editdlrm
win_add2path.py16200644editdlrm
win_add2path.pyc21390644editdlrm
win_add2path.pyo21390644editdlrm
xxci.py28010755editdlrm
xxci.pyc40650644editdlrm
xxci.pyo40650644editdlrm
Edit: /usr/lib64/python2.6/Tools/scripts/reindent.pyo (8869B)
Ñò «gc@s¿dZdZddkZddkZddkZddkZdadadae a dd„Z d„Z d„Zd„Zd d „Zd dd „ƒYZd „Zedjo eƒndS(sAreindent [-d][-r][-v] [ path ... ] -d (--dryrun) Dry run. Analyze, but don't make any changes to, files. -r (--recurse) Recurse. Search for all .py files in subdirectories too. -n (--nobackup) No backup. Does not make a ".bak" file before reindenting. -v (--verbose) Verbose. Print informative msgs; else no output. -h (--help) Help. Print this usage information and exit. Change Python (.py) files to use 4-space indents and no hard tab characters. Also trim excess spaces and tabs from ends of lines, and remove empty lines at the end of files. Also ensure the last line ends with a newline. If no paths are given on the command line, reindent operates as a filter, reading a single source file from standard input and writing the transformed source to standard output. In this case, the -d, -r and -v flags are ignored. You can pass one or more file and/or directory paths. When a directory path, all .py files within the directory will be examined, and, if the -r option is given, likewise recursively for subdirectories. If output is not to standard output, reindent overwrites files in place, renaming the originals with a .bak extension. If it finds nothing to change, the file is left alone. If reindent does change a file, the changed file is a fixed-point for future runs (i.e., running reindent on the resulting .py file won't change it again). The hard part of reindenting is figuring out what to do with comment lines. So long as the input files get a clean bill of health from tabnanny.py, reindent should do a good job. The backup file is a copy of the one that is being reindented. The ".bak" file is generated with shutil.copy(), but some corner cases regarding user/group and permissions could leave the backup file more readable that you'd prefer. You can always use the --nobackup option to prevent this. t1iÿÿÿÿNicCs/|dj oti|IJntitIJdS(N(tNonetsyststderrt__doc__(tmsg((s./usr/lib64/python2.6/Tools/scripts/reindent.pytusage5s cGsKd}x.|D]&}tii|t|ƒƒd}q WtiidƒdS(Ntt s (RRtwritetstr(targstseptarg((s./usr/lib64/python2.6/Tools/scripts/reindent.pyterrprint:s  c CsSddk}y5|itidddddddgƒ\}}Wn#|ij o}t|ƒdSXx•|D]\}}|djotd7aqn|djotd7aqn|djo taqn|djot d7a qn|djo tƒdSqnW|p.t ti ƒ}|i ƒ|i tiƒdSx|D]}t|ƒq;WdS(Niÿÿÿÿitdrnvhtdryruntrecursetnobackuptverbosethelps-ds--dryruns-rs --recurses-ns --nobackups-vs --verboses-hs--help(s-ds--dryrun(s-rs --recurse(s-ns --nobackup(s-vs --verbose(s-hs--help(tgetoptRtargvterrorRRRtFalset makebackupRt ReindentertstdintrunR tstdouttcheck(RtoptsR RtotatrR ((s./usr/lib64/python2.6/Tools/scripts/reindent.pytmainAs8 "          cCs(tii|ƒoÕtii|ƒ oÁto dG|GHnti|ƒ}x–|D]Ž}tii||ƒ}toHtii|ƒo5tii|ƒ o!tii|ƒdi dƒ p|i ƒi dƒot |ƒqQqQWdStodG|GdGnyt |ƒ}Wn0tj o$}td|t|ƒfƒdSXt|ƒ}|iƒ|iƒo«todGHto d GHq…ntp|d }to0ti||ƒtod G|Gd G|GHqÍnt |d ƒ}|i|ƒ|iƒto dG|GHq ntSto dGHntSdS(Nslisting directoryit.s.pytcheckings...s%s: I/O Error: %sschanged.s+But this is a dry run, so leaving it alone.s.baks backed upttotws wrote news unchanged.(tostpathtisdirtislinkRtlistdirtjoinRtsplitt startswithtlowertendswithRtopentIOErrorRR RtcloseRRRtshutiltcopyfileR tTrueR(tfiletnamestnametfullnametfRR"tbak((s./usr/lib64/python2.6/Tools/scripts/reindent.pyR^sT' !        s cCsHt|ƒ}x1|djo#||d|jo|d8}qW|| S(sReturn line stripped of trailing spaces, tabs, newlines. Note that line.rstrip() instead also strips sundry control characters, but at least one known Emacs user expects to keep junk like that, not mentioning Barry by name or anything . ii(tlen(tlinetJUNKti((s./usr/lib64/python2.6/Tools/scripts/reindent.pyt_rstripŒs  "RcBsSeZd„Zd„Zd„Zd„Zeieiei ei ei d„Z RS(cCsd|_d|_|iƒ|_g}|iD]}|t|ƒiƒdq/~|_|iiddƒd|_ g|_ dS(Niis ( t find_stmttlevelt readlinestrawRBt expandtabstlinestinsertRtindextstats(tselfR<t_[1]R?((s./usr/lib64/python2.6/Tools/scripts/reindent.pyt__init__›s  0 c Csti|i|iƒ|i}x'|o|ddjo|iƒq"W|i}|it|ƒdfƒh}g}|_|dd}|i |d|!ƒxht t|ƒdƒD]P}||\}}||dd}t ||ƒ} |d} | djo8| o'|i | dƒ} | djosxpt |dt|ƒdƒD]M} || \} } | djo*| t || ƒjo| d} nPqJqJWn| djomxjt |dddƒD]N} || \} } | djo+| t || dƒt || ƒ} PqÃqÃWn| djo | } q:q>d} n| || <| | }|djp | djo|i |||!ƒq·x€|||!D]q}|djo7|djo|i|ƒq|id||ƒq’tt |ƒ| ƒ}|i||ƒq’Wq·W|i|ijS(Niÿÿÿÿs iiiR(ttokenizetgetlinet tokeneaterRHtpopRKtappendR>taftertextendtranget getlspacetgettxrangetminRF(RLRHRKt have2wantRTRAtthisstmtt thisleveltnextstmtthavetwanttjtjlinetjleveltdiffR?tremove((s./usr/lib64/python2.6/Tools/scripts/reindent.pyR°sh                 cCs|i|iƒdS(N(t writelinesRT(RLR<((s./usr/lib64/python2.6/Tools/scripts/reindent.pyR õscCsF|it|iƒjo d}n |i|i}|id7_|S(NRi(RJR>RH(RLR?((s./usr/lib64/python2.6/Tools/scripts/reindent.pyRPùs  c Csý|\} } ||jo d|_nÔ||jod|_|id7_n«||jod|_|id8_n‚|| jo(|io|ii| dfƒqùnM|| jon<|io1d|_|o|ii| |ifƒqùndS(Niiÿÿÿÿi(RCRDRKRS( RLttypettokent.3tendR?tINDENTtDEDENTtNEWLINEtCOMMENTtNLtslinetscol((s./usr/lib64/python2.6/Tools/scripts/reindent.pyRQs$            ( t__name__t __module__RNRR RPRORkRlRmRnRoRQ(((s./usr/lib64/python2.6/Tools/scripts/reindent.pyR™s  E  cCsGdt|ƒ}}x-||jo||djo|d7}qW|S(NiRi(R>(R?RAtn((s./usr/lib64/python2.6/Tools/scripts/reindent.pyRW)s t__main__((Rt __version__ROR(R5RRRRR7RRRRR#RRBRRWRr(((s./usr/lib64/python2.6/Tools/scripts/reindent.pyt(s"      .