cpython/Tools/scripts
Benjamin Peterson 206e3074d3 Merged revisions 66887,66891,66902-66903,66905-66906,66911-66913,66922,66927-66928,66936,66939-66940,66962,66964,66973 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r66887 | benjamin.peterson | 2008-10-13 16:51:40 -0500 (Mon, 13 Oct 2008) | 1 line

  document how to disable fixers
................
  r66891 | amaury.forgeotdarc | 2008-10-14 16:47:22 -0500 (Tue, 14 Oct 2008) | 5 lines

  #4122: On Windows, Py_UNICODE_ISSPACE cannot be used in an extension module:
  compilation fails with "undefined reference to _Py_ascii_whitespace"

  Will backport to 2.6.
................
  r66902 | skip.montanaro | 2008-10-15 06:49:10 -0500 (Wed, 15 Oct 2008) | 1 line

  easter egg
................
  r66903 | benjamin.peterson | 2008-10-15 15:34:09 -0500 (Wed, 15 Oct 2008) | 1 line

  don't recurse into directories that start with '.'
................
  r66905 | benjamin.peterson | 2008-10-15 16:05:55 -0500 (Wed, 15 Oct 2008) | 1 line

  support the optional line argument for idle
................
  r66906 | benjamin.peterson | 2008-10-15 16:58:46 -0500 (Wed, 15 Oct 2008) | 1 line

  add a much requested newline
................
  r66911 | benjamin.peterson | 2008-10-15 18:10:28 -0500 (Wed, 15 Oct 2008) | 41 lines

  Merged revisions 66805,66841,66860,66884-66886,66893,66907,66910 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r66805 | benjamin.peterson | 2008-10-04 20:11:02 -0500 (Sat, 04 Oct 2008) | 1 line

    mention what the fixes directory is for
  ........
    r66841 | benjamin.peterson | 2008-10-07 17:48:12 -0500 (Tue, 07 Oct 2008) | 1 line

    use assertFalse and assertTrue
  ........
    r66860 | benjamin.peterson | 2008-10-08 16:05:07 -0500 (Wed, 08 Oct 2008) | 1 line

    instead of abusing the pattern matcher, use start_tree to find a next binding
  ........
    r66884 | benjamin.peterson | 2008-10-13 15:50:30 -0500 (Mon, 13 Oct 2008) | 1 line

    don't print tokens to stdout when -v is given
  ........
    r66885 | benjamin.peterson | 2008-10-13 16:28:57 -0500 (Mon, 13 Oct 2008) | 1 line

    add the -x option to disable fixers
  ........
    r66886 | benjamin.peterson | 2008-10-13 16:33:53 -0500 (Mon, 13 Oct 2008) | 1 line

    cut down on some crud
  ........
    r66893 | benjamin.peterson | 2008-10-14 17:16:54 -0500 (Tue, 14 Oct 2008) | 1 line

    add an optional set literal fixer
  ........
    r66907 | benjamin.peterson | 2008-10-15 16:59:41 -0500 (Wed, 15 Oct 2008) | 1 line

    don't write backup files by default
  ........
    r66910 | benjamin.peterson | 2008-10-15 17:43:10 -0500 (Wed, 15 Oct 2008) | 1 line

    add the -n option; it stops backupfiles from being written
  ........
................
  r66912 | hirokazu.yamamoto | 2008-10-16 01:25:25 -0500 (Thu, 16 Oct 2008) | 2 lines

  removed unused _PyUnicode_FromFileSystemEncodedObject.
  made win32_chdir, win32_wchdir static.
................
  r66913 | benjamin.peterson | 2008-10-16 13:52:14 -0500 (Thu, 16 Oct 2008) | 1 line

  document that deque indexing is O(n) #4123
................
  r66922 | benjamin.peterson | 2008-10-16 14:40:14 -0500 (Thu, 16 Oct 2008) | 1 line

  use new showwarnings signature for idle #3391
................
  r66927 | andrew.kuchling | 2008-10-16 15:15:47 -0500 (Thu, 16 Oct 2008) | 1 line

  Fix wording (2.6.1 backport candidate)
................
  r66928 | georg.brandl | 2008-10-16 15:20:56 -0500 (Thu, 16 Oct 2008) | 2 lines

  Add more TOC to the whatsnew index page.
................
  r66936 | georg.brandl | 2008-10-16 16:20:15 -0500 (Thu, 16 Oct 2008) | 2 lines

  #4131: FF3 doesn't write cookies.txt files.
................
  r66939 | georg.brandl | 2008-10-16 16:36:39 -0500 (Thu, 16 Oct 2008) | 2 lines

  part of #4012: kill off old name "processing".
................
  r66940 | georg.brandl | 2008-10-16 16:38:48 -0500 (Thu, 16 Oct 2008) | 2 lines

  #4083: add "as" to except handler grammar as per PEP 3110.
................
  r66962 | benjamin.peterson | 2008-10-17 15:01:01 -0500 (Fri, 17 Oct 2008) | 1 line

  clarify CALL_FUNCTION #4141
................
  r66964 | georg.brandl | 2008-10-17 16:41:49 -0500 (Fri, 17 Oct 2008) | 2 lines

  Fix duplicate word.
................
  r66973 | armin.ronacher | 2008-10-19 03:27:43 -0500 (Sun, 19 Oct 2008) | 3 lines

  Fixed #4067 by implementing _attributes and _fields for the AST root node.
................
2008-10-19 14:07:49 +00:00
..
2to3 Merged revisions 66174-66175,66177 via svnmerge from 2008-09-03 02:27:16 +00:00
README Remove more hotshot cruft. 2007-10-13 18:56:00 +00:00
byext.py Make byext.py really work. 2007-09-27 22:39:12 +00:00
byteyears.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
checkappend.py - Issue #719888: Updated tokenize to use a bytes API. generate_tokens has been 2008-03-18 22:41:35 +00:00
checkpyc.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
classfix.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
cleanfuture.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
combinerefs.py Fix a last use of file() that should be open(). 2007-12-06 18:37:53 +00:00
copytime.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
crlf.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
cvsfiles.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
db2pickle.py Create the dbm package from PEP 3108. #2881. 2008-05-26 10:29:35 +00:00
diff.py Read the text files to be compared in universal-newline mode. 2004-10-03 19:03:19 +00:00
dutree.doc
dutree.py Make it work with Py3k. 2007-08-29 23:37:34 +00:00
eptags.py Fix use of 'file' as a variable name. 2003-05-13 18:14:25 +00:00
finddiv.py Convert some custom sort comparison functions to equivalent key functions. 2008-01-30 02:55:10 +00:00
findlinksto.py Removed remnants of os.path.walk(). 2008-05-09 20:00:17 +00:00
findnocoding.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
fixcid.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
fixdiv.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
fixheader.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
fixnotice.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
fixps.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
ftpmirror.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
google.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
gprof2html.py [Patch #1005491 ] use __name__ == '__main__' in scripts 2004-08-09 17:27:55 +00:00
h2py.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
idle Merged revisions 65780,65782,65785,65809,65812,65834,65846,65859,65861 via svnmerge from 2008-08-19 18:57:56 +00:00
ifdef.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
lfcr.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
linktree.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
lll.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
logmerge.py Merged revisions 60990-61002 via svnmerge from 2008-02-23 18:30:17 +00:00
mailerdaemon.py Remove traces of rfc822. 2008-06-12 22:23:59 +00:00
make_ctype.py Silly script I'd rather not throw away. 2007-10-09 17:30:03 +00:00
md5sum.py SF patch 1631942 by Collin Winter: 2007-01-10 16:19:56 +00:00
methfix.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
mkreal.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
ndiff.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
nm2def.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
objgraph.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
parseentities.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
patchcheck.py Convert the input from stdout to text. 2008-03-18 21:45:57 +00:00
pathfix.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
pdeps.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
pickle2db.py Create the dbm package from PEP 3108. #2881. 2008-05-26 10:29:35 +00:00
pindent.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
ptags.py [Patch #1005491 ] use __name__ == '__main__' in scripts 2004-08-09 17:27:55 +00:00
pydoc [Patch #1005491 ] use __name__ == '__main__' in scripts 2004-08-09 17:27:55 +00:00
pydocgui.pyw [Patch #1005491 ] use __name__ == '__main__' in scripts 2004-08-09 17:27:55 +00:00
pysource.py Merged revisions 60990-61002 via svnmerge from 2008-02-23 18:30:17 +00:00
redemo.py SF patch 1631942 by Collin Winter: 2007-01-10 16:19:56 +00:00
reindent.py Merged revisions 66887,66891,66902-66903,66905-66906,66911-66913,66922,66927-66928,66936,66939-66940,66962,66964,66973 via svnmerge from 2008-10-19 14:07:49 +00:00
rgrep.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
setup.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
suff.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
svneol.py Merged revisions 64265 via svnmerge from 2008-06-14 06:25:37 +00:00
texi2html.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
treesync.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +00:00
untabify.py Convert raise statements in Tools/. 2007-08-22 23:05:06 +00:00
which.py Convert print statements to function calls in Tools/. 2007-08-03 17:06:41 +00:00
win_add2path.py #2879: rename _winreg to winreg. 2008-05-25 07:45:51 +00:00
xxci.py Ran 2to3 over scripts directory. 2008-05-16 15:23:30 +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!

byext.py		Print lines/words/chars stats of files by extension
byteyears.py		Print product of a file's size and age
checkappend.py		Search for multi-argument .append() calls
checkpyc.py		Check presence and validity of ".pyc" files
classfix.py		Convert old class syntax to new
cleanfuture.py		Fix reduntant Python __future__ statements
combinerefs.py		A helper for analyzing PYTHONDUMPREFS output.
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
db2pickle.py		Dump a database file to a pickle
diff.py			Print file diffs in context, unified, or ndiff formats
dutree.py		Format du(1) output as a tree sorted by size
eptags.py		Create Emacs TAGS file for Python modules
finddiv.py		A grep-like tool that looks for division operators.
findlinksto.py		Recursively find symbolic links to a given path prefix
findnocoding.py		Find source files which need an encoding declaration
fixcid.py		Massive identifier substitution on C source files
fixdiv.py		Tool to fix division operators.
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
google.py		Open a webbrowser with Google.
gprof2html.py		Transform gprof(1) output into useful HTML.
h2py.py			Translate #define's into Python assignments
idle			Main program to start IDLE
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)
md5sum.py		Print MD5 checksums of argument files.
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
parseentities.py	Utility for parsing HTML entity definitions
pathfix.py		Change #!/usr/local/bin/python into something else
pdeps.py		Print dependencies between Python modules
pickle2db.py		Load a pickle generated by db2pickle.py to a database
pindent.py		Indent Python code, giving block-closing comments
ptags.py		Create vi tags file for Python modules
pydoc			Python documentation browser.
pysource.py		Find Python source files
redemo.py		Basic regular expression demonstration facility
reindent.py		Change .py files to use 4-space indents.
rgrep.py		Reverse grep through a file (useful for big logfiles)
setup.py		Install all scripts listed here.
suff.py			Sort a list of files by suffix
svneol.py		Sets svn:eol-style on all files in directory.
texcheck.py             Validate Python LaTeX formatting (Raymond Hettinger)
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