cpython/Tools/scripts
Guido van Rossum a74c55662f Mark Hammond writes:
"""
If the filename being complained about contains a space, enclose the
file-name in quotes.

The reason is simply that when I try and parse tabnanny's output, filenames
with spaces make it very difficult to determine where the filename stops
and the linenumber begins!
"""

Tim approves.

I slightly changed the patch (use 'in' instead of string.find()) and
arbitrarily bumped the __version__ variable up to 6.
1999-07-30 17:48:20 +00:00
..
README Added a whole bunch of descriptions. 1998-10-07 19:52:35 +00:00
byteyears.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
checkpyc.py Use the imp module to get the magic word. 1998-10-07 19:45:33 +00:00
classfix.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
copytime.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
crlf.py Utility to replace CRLF with LF in argument files. 1998-09-14 15:46:41 +00:00
cvsfiles.py give in to tab police 1998-03-24 05:30:29 +00:00
dutree.doc Initial revision 1992-03-02 16:20:32 +00:00
dutree.py For reasons I dare not explain, this script should always execute 1999-04-02 22:18:25 +00:00
eptags.py Fix multi-arg list.append() calls. 1998-10-08 15:24:48 +00:00
findlinksto.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
fixcid.py Correct comment; -c is off by default. 1997-05-15 21:51:16 +00:00
fixheader.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
fixnotice.py give in to tab police 1998-03-24 05:30:29 +00:00
fixps.py Use re instead of regex. 1999-04-09 14:56:35 +00:00
ftpmirror.py Fix by Sjoerd Mullender to support symbolic links and make a backup of 1998-06-29 23:17:16 +00:00
h2py.py Patch by Chris Herborth: 1998-12-17 18:02:15 +00:00
ifdef.py Fix multi-arg list.append() calls. 1998-10-08 15:24:48 +00:00
lfcr.py nannified. 1998-09-14 15:56:40 +00:00
linktree.py give in to tab police 1998-03-24 05:30:29 +00:00
lll.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
logmerge.py give in to tab police 1998-03-24 05:30:29 +00:00
mailerdaemon.py New version that is much more compact and easier to maintain. (Sjoerd) 1998-10-09 13:27:49 +00:00
methfix.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
mkreal.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
ndiff.py Tim Peters writes: 1999-03-28 17:55:32 +00:00
nm2def.py Added #! line 1998-10-07 14:46:09 +00:00
objgraph.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
pathfix.py Changed logic so it now replaces anything that has #! and python in 1996-11-27 19:43:01 +00:00
pdeps.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
pindent.py Translated to use re instead of regex. Also replaced one use of 1998-06-19 21:39:27 +00:00
ptags.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
rgrep.py New tool: reverse grep (greps from the end). Uses a fairly efficient 1998-08-12 17:47:52 +00:00
suff.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
sum5.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
tabnanny.py Mark Hammond writes: 1999-07-30 17:48:20 +00:00
tabpolice.py Add usage message when no arguments. 1998-04-06 14:45:26 +00:00
texi2html.py Fix multi-arg list.append() calls. 1998-10-08 15:24:48 +00:00
treesync.py give in to tab police 1998-03-24 05:30:29 +00:00
untabify.py Detlef Lannert lannert@lannert.rz.uni-duesseldorf.de notices: 1998-10-20 15:33:33 +00:00
which.py Remove "." or "" from front of sys.path (this bit me once). 1997-10-20 23:48:01 +00:00
xxci.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +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
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