cpython/Tools/scripts
Jeremy Hylton 89f1d6c04e Fix one bug and reformat lots of code.
The bug is a reference to co_first_lineno that should be
co_firstlineno.  The only other substantial change is to speed up
localtrace_count() by avoiding *costly* calls to inspect module.
It's trivial to get the filename and lineno directly from the frame.

Otherwise, delete commented out debug code and reflow very long lines.
2002-12-11 21:28:32 +00:00
..
README Marc-Andre Lemburg: added 2000-03-10 22:36:57 +00:00
byteyears.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
checkappend.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
checkpyc.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
classfix.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
cleanfuture.py Fix typo in module docstring. 2001-08-15 06:07:42 +00:00
copytime.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
crlf.py Tim wins a bet. Don't use re. 2002-11-13 21:04:31 +00:00
cvsfiles.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
dutree.doc Initial revision 1992-03-02 16:20:32 +00:00
dutree.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
eptags.py satisfy the tabnanny 2000-09-18 01:46:01 +00:00
finddiv.py A grep-like tool that looks for division operators. 2001-09-02 04:43:30 +00:00
findlinksto.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
fixcid.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
fixdiv.py - Reverse the meaning of the -m option: warnings about multiple / 2001-09-04 16:22:01 +00:00
fixheader.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
fixnotice.py Added a module docstring, which doubles as the --help text. 2002-02-08 23:25:46 +00:00
fixps.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
ftpmirror.py * when given, port should be converted to int 2002-12-05 02:43:14 +00:00
gencodec.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
google.py www.google.com is better than google.com. 2002-02-08 16:20:07 +00:00
gprof2html.py A tool to transform gprof(1) output into HTML, so you can click on a 2002-08-09 20:07:34 +00:00
h2py.py Expand negative hexadecimal constants. 2002-11-23 12:08:10 +00:00
ifdef.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
lfcr.py Patch by Gerrit Holl: 2000-02-14 21:42:14 +00:00
linktree.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
lll.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
logmerge.py Added -b tag option to limit output to a specific branch only. 2002-09-29 04:37:36 +00:00
mailerdaemon.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
md5sum.py Use 2.1's .hexdigest() method 2002-04-17 21:50:03 +00:00
methfix.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
mkreal.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
ndiff.py Generalize file.writelines() to allow iterable objects. 2001-09-23 04:06:05 +00:00
nm2def.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
objgraph.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
parseentities.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
pathfix.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
pdeps.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
pindent.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
ptags.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
pydoc Call main routine in pydoc module (pydoc.cli). 2001-03-01 00:25:40 +00:00
pydocgui.pyw Rename pydoc.pyw to pydocgui.pyw: Since we changed Python to allow .pyw 2001-08-05 05:43:20 +00:00
redemo.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
reindent.py operate as a filter when no files or directories appear on the command line 2002-03-26 11:39:26 +00:00
rgrep.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
setup.py add logmerge.py (pydoc is already installed) 2002-12-05 21:12:34 +00:00
suff.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
sum5.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
texi2html.py Mechanically translated string method calls to string methods. 2002-06-18 15:37:05 +00:00
trace.py Fix one bug and reformat lots of code. 2002-12-11 21:28:32 +00:00
treesync.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
untabify.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
which.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
xxci.py Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00

README

This directory contains a collection of executable Python scripts that
are useful while building, extending or managing Python.  Some (e.g.,
dutree or lll) are also generally useful UNIX tools.

See also the Demo/scripts directory!

byteyears.py		Print product of a file's size and age
checkpyc.py		Check presence and validity of ".pyc" files
classfix.py		Convert old class syntax to new
copytime.py		Copy one file's atime and mtime to another
crlf.py			Change CRLF line endings to LF (Windows to Unix)
cvsfiles.py		Print a list of files that are under CVS
dutree.py		Format du(1) output as a tree sorted by size
eptags.py		Create Emacs TAGS file for Python modules
findlinksto.py		Recursively find symbolic links to a given path prefix
fixcid.py		Massive identifier substitution on C source files
fixheader.py		Add some cpp magic to a C include file
fixnotice.py		Fix the copyright notice in source files
fixps.py		Fix Python scripts' first line (if #!)
ftpmirror.py		FTP mirror script
gencodec.py		Create Python codecs from Unicode mapping files
h2py.py			Translate #define's into Python assignments
ifdef.py		Remove #if(n)def groups from C sources
lfcr.py			Change LF line endings to CRLF (Unix to Windows)
linktree.py		Make a copy of a tree with links to original files
lll.py			Find and list symbolic links in current directory
logmerge.py		Consolidate CVS/RCS logs read from stdin
mailerdaemon.py		parse error messages from mailer daemons (Sjoerd&Jack)
methfix.py		Fix old method syntax def f(self, (a1, ..., aN)):
mkreal.py		Turn a symbolic link into a real file or directory
ndiff.py		Intelligent diff between text files (Tim Peters)
nm2def.py		Create a template for PC/python_nt.def (Marc Lemburg)
objgraph.py		Print object graph from nm output on a library
pathfix.py		Change #!/usr/local/bin/python into something else
pdeps.py		Print dependencies between Python modules
pindent.py		Indent Python code, giving block-closing comments
ptags.py		Create vi tags file for Python modules
rgrep.py		Reverse grep through a file (useful for big logfiles)
suff.py			Sort a list of files by suffix
sum5.py			Print md5 checksums of files
tabnanny.py		Check for ambiguous indentation (Tim Peters)
tabpolice.py		Check for ambiguous indentation (GvR)
texi2html.py		Convert GNU texinfo files into HTML
treesync.py		Synchronize source trees (very ideosyncratic)
untabify.py		Replace tabs with spaces in argument files
which.py		Find a program in $PATH
xxci.py			Wrapper for rcsdiff and ci