/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/cleanfuture.pyo (7475B)
Ñò «gc@s’dZddkZddkZddkZddkZdadadad„Zd„Z d„Z dd d„ƒYZ e d jo e ƒndS( s‘cleanfuture [-d][-r][-v] path ... -d Dry run. Analyze, but don't make any changes to, files. -r Recurse. Search for all .py files in subdirectories too. -v Verbose. Print informative msgs. Search Python (.py) files for future statements, and remove the features from such statements that are already mandatory in the version of Python you're using. 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. Overwrites files in place, renaming the originals with a .bak extension. If cleanfuture finds nothing to change, the file is left alone. If cleanfuture does change a file, the changed file is a fixed-point (i.e., running cleanfuture on the resulting .py file won't change it again, at least not until you try it again with a later Python release). Limitations: You can do these things, but this tool won't help you then: + A future statement cannot be mixed with any other statement on the same physical line (separated by semicolon). + A future statement cannot contain an "as" clause. Example: Assuming you're using Python 2.2, if a file containing from __future__ import nested_scopes, generators is analyzed by cleanfuture, the line is rewritten to from __future__ import generators because nested_scopes is no longer optional in 2.2 but generators is. iÿÿÿÿNicGsQtt|ƒ}di|ƒ}|ddjo|d7}ntii|ƒdS(Nt iÿÿÿÿs (tmaptstrtjointsyststderrtwrite(targststringstmsg((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pyterrprint2s c Csõddk}y#|itiddƒ\}}Wn#|ij o}t|ƒdSXxe|D]]\}}|djotd7aq\|djotd7aq\|djotd7aq\q\W|ptdtƒdSx|D]}t |ƒqÝWdS(Niÿÿÿÿitdrvs-ds-rs-vsUsage:( tgetoptRtargvterrorR tdryruntrecursetverboset__doc__tcheck(R toptsRR totatarg((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pytmain9s( #      c Csµtii|ƒo´tii|ƒ o to dG|GHnti|ƒ}xu|D]m}tii||ƒ}to'tii|ƒotii|ƒ p|iƒi dƒot |ƒqQqQWdStodG|GdGnyt |ƒ}Wn0t j o$}t d|t|ƒfƒdSXt||ƒ}|iƒ}|o|iƒn|iƒ|o?todGHto dGHq‚nxy|D]q\}} } d||d | d fGHx&t|| d ƒD]} |i| GqÆW| djo d GHq‰d GH| Gq‰Wtp˜|d } tii| ƒoti| ƒnti|| ƒtod G|GdG| GHnt |dƒ} |i| ƒ| iƒto dG|GHqq±nto dGHndS(Nslisting directorys.pytcheckings...s%r: I/O Error: %sschanged.s+But this is a dry run, so leaving it alone.s%r lines %d-%dis -- deleteds -- change to:s.baktrenamedttotws wrote news unchanged.(tostpathtisdirtislinkRtlistdirRRtlowertendswithRtopentIOErrorR Rt FutureFindertrunt gettheresttcloseRtrangetlinestNonetexiststremovetrenameR(tfiletnamestnametfullnametfR tfftchangedtstetlinetitbaktg((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pyRNsj'         R&cBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs1||_||_d|_g|_g|_dS(Ni(R4tfnametateofR+R6(tselfR4R=((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pyt__init__ˆs     cCsL|iodS|iiƒ}|djo d|_n|ii|ƒ|S(Nti(R>R4treadlineR+tappend(R?R9((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pytgetline’s   cCs+ti}ti}ti}ti}ti}ti}|i}ti|i ƒi }|ƒ\} } \} } \} }}x?| |||fjo(|ƒ\} } \} } \} }}q{Wx6| |jo(|ƒ\} } \} } \} }}q½Wx1x?| |||fjo(|ƒ\} } \} } \} }}qùW| |jo | djpPn| d}|ƒ\} } \} } \} }}| |jo | djpPn|ƒ\} } \} } \} }}| |jo | djpPn|ƒ\} } \} } \} }}g}x†| |jox|i | ƒ|ƒ\} } \} } \} }}| |jo | djpPn|ƒ\} } \} } \} }}qWd}| |jo.| }|ƒ\} } \} } \} }}n| |j ot d|i| |fƒgS| d}g}xx|D]p}tt|dƒ}|djo|i |ƒq|iƒ}|djp|tijoq|i |ƒqWt|ƒt|ƒjoyt|ƒdjo d}nCd}|d i|ƒ7}|dj o|d |7}n|d 7}|i |||fƒqöqö|S( Ntfromit __future__timportt,s)Skipping file %r; can't parse line %d: %sisfrom __future__ import s, Rs (ttokenizetSTRINGtNLtNEWLINEtCOMMENTtNAMEtOPR6tgenerate_tokensRDtnextRCR,R R=tgetattrRFtgetMandatoryReleaseRt version_infotlenR(R?RJRKRLRMRNROR6tgetttypettokentsrowtscolterowtecolR9t startlinetfeaturestcommenttendlinet okfeaturesR4tobjecttreleased((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pyR'œs„       $) )) $$$  $) (       cCs-|io d|_n|iiƒ|_dS(NRA(R>ttherestR4tread(R?((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pyR(ûs  cCs¡|i}g|_|iƒxP|D]H\}}}|djo|i||d5q#|g|i||d+q#W|i|iƒ|io|i|iƒndS(Ni(R6treverseR,R+t writelinesRdR(R?R4R6R7R8R9((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pyRs     (t__name__t __module__R@RDR'R(R(((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pyR&†s  _ t__main__(( RRFRIRRRRRR RRR&Rh(((s1/usr/lib64/python2.6/Tools/scripts/cleanfuture.pyt's       8