Commit Graph

151 Commits

Author SHA1 Message Date
Guido van Rossum f4b44fa6ef Tim's latest version (supports old and new tokenize modules) 1998-04-06 14:41:20 +00:00
Guido van Rossum 9ab75cbaab Tim Peters' program for checking whether a program's indentation is
sensitive to tab size.  Uses a different strategy than tabpolice.py,
but has compatible usage.
1998-03-31 14:31:39 +00:00
Guido van Rossum 97df7f8679 Add -q option that *just* prints the filename. 1998-03-26 19:23:43 +00:00
Guido van Rossum ed5b3d8b3c give in to tab police 1998-03-24 05:30:29 +00:00
Guido van Rossum 3db0e3713c Report first line with inconsistent tab usage. 1998-03-24 04:58:04 +00:00
Guido van Rossum 6f73c1a2ac The Tab Police watches for possibly inconsistent indentation. 1998-03-20 19:23:04 +00:00
Guido van Rossum fdc5adc594 Dangerous feature added: when removing local files (i.e., only when -r
is used), do a recursive delete.  Use -r with even more caution!
Also changed usage message into a doc string, added a comment or two,
and rearranged a long line.
1998-01-04 02:03:12 +00:00
Guido van Rossum ca83f018e7 Added "-n file" option to only print files newer than the given file. 1997-11-24 23:49:35 +00:00
Guido van Rossum 79b2038aa4 When checking for equality, open the slave file in text mode so it
will compare equal even if the master file uses only \n to terminate
lines (this is by far the most common situation).  Also, check for the
case where the master file is missing, and print the time difference
in seconds when the slave file appears newer than the master (for
debugging).
1997-11-04 17:35:43 +00:00
Guido van Rossum 9476a78c1e Remove "." or "" from front of sys.path (this bit me once). 1997-10-20 23:48:01 +00:00
Guido van Rossum 9971f689cb Fix comment to add the all-important trailing colon to the example.
Print the author with the revision date and filename.
1997-10-06 21:09:32 +00:00
Guido van Rossum b81b5c72db Moved pystone to Lib/test. Use import test.pystone to run it. 1997-09-16 18:57:42 +00:00
Guido van Rossum d2ba3690ce Skip symlinks; don't bother keeping a list of files that is never used. 1997-09-16 18:57:14 +00:00
Guido van Rossum 92dfa4ffe1 Use correct keyword parameter when calling copy with answer option! 1997-08-18 20:56:10 +00:00
Guido van Rossum 939e4c1efb Oops, there was a bug in the output formatting - the last printed
values would overwrite the next value.
1997-08-14 23:25:20 +00:00
Guido van Rossum 3485bb6f44 Added logmerge.py 1997-08-14 22:04:26 +00:00
Guido van Rossum 6f0cf7ee20 Consolidate a bunch of CVS or RCS logs read from stdin. 1997-08-14 22:04:00 +00:00
Guido van Rossum 4d3376a80f Added cvsfiles.py and treesync.py 1997-08-14 20:16:32 +00:00
Guido van Rossum a554107802 Source tree synchronization tool (for Windowes, mostly) 1997-08-14 20:15:20 +00:00
Guido van Rossum 30e53c0c39 Print a list of files under CVS. 1997-08-14 20:14:54 +00:00
Guido van Rossum 9189bdabd5 support C++ comments 1997-08-14 20:14:29 +00:00
Guido van Rossum 5526e394a2 set LOOPS to 10000 1997-08-14 20:14:12 +00:00
Guido van Rossum 650b3aad55 Unlink before rename (for NT). 1997-05-19 15:20:49 +00:00
Guido van Rossum e6fcd33179 Correct comment; -c is off by default. 1997-05-15 21:51:16 +00:00
Guido van Rossum 1ade44cb0c Open the output files with 'wb', not 'w'. 1997-05-15 18:25:29 +00:00
Guido van Rossum 04f2b453bb Version 1.1. Fix memory leak and expensive comparison with None. 1997-01-18 02:20:37 +00:00
Guido van Rossum f06ee5fa07 /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
Guido van Rossum 499181a833 Changed so that it replaces /usr/local/bin/python with /usr/bin/env python. 1996-11-27 19:43:49 +00:00
Guido van Rossum d5c58c34db Changed logic so it now replaces anything that has #! and python in
the first line, replacing the entire line.
1996-11-27 19:43:01 +00:00
Guido van Rossum fc0588241c Script to fix cprt notice 1996-11-27 19:41:55 +00:00
Guido van Rossum e41d00bb6a Fixed a bug: files that no longer exist remotely would never be
removed from .mirrorinfo.  Now they are (even if -r is not specified
-- the files are not removed, just their .mirrorinfo entry).

Added a feature: the -s pattern option is also used to skip local
files when removing (i.e. -r won't remove local files matching the -s
patterns).
1996-11-14 18:24:47 +00:00
Fred Drake abcb38250b (texi2html.py): Minor improvement to HTML 3.0 output for code examples. 1996-10-25 22:13:59 +00:00
Fred Drake 22f7f9e671 (texi2html.py): Added CLASS=Navigation attribute to DIV around top/bottom
navigation links for HTML 3 version.

	Forced a blank line above the footnotes separator for HTML 2; at
	least one page did not get this spaced correctly.
1996-10-11 16:54:00 +00:00
Fred Drake 0282726643 (texi2html.py): Tightened the generated HTML slightly. Added -p option to
print section titles even when the debugging output is not enabled.
	Added -3 option to generate HTML 3.0 constructs where meaningful.

	Removed repititive garbage generation:  the old version added simple
	descriptive comments after every datadesc/funcdesc/*desc entry:

	function(args) -- function of module xxxx
	    Description....

	These comments are no longer generated:

	function(args)
	    Description....
1996-10-09 19:05:12 +00:00
Fred Drake a39a25e5ec (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
to 4 spaces per level (no longer 8).

(Makefile):  Use .pyc versions of partparse.py and texi2html.py to generate
	converted documentation formats.  This reduces the startup costs;
	probably doesn't affect anyone but me in reality, but helps when
	working on the docs.
1996-09-13 14:44:34 +00:00
Guido van Rossum be5e34204e Note obsolescence 1996-09-11 23:34:32 +00:00
Guido van Rossum 6100d914e8 Allow whitespace before '#' in preprocessor directives. 1996-08-22 23:12:23 +00:00
Guido van Rossum 29901ff528 Some improvements by Fred Drake. 1996-08-09 21:46:34 +00:00
Guido van Rossum 8e7a54f525 More changes by Sjoerd & Jack 1996-07-21 02:50:30 +00:00
Guido van Rossum 9a2c546e75 Create files as temp file and move to real location only when complete.
Added some try-except statements around listdir and mkdir operations.
1996-04-09 02:51:23 +00:00
Guido van Rossum d2966cb95a don't die on unreadable files etc. 1996-02-05 18:49:00 +00:00
Jack Jansen e48aa966c1 Fixed bug in cts error message handling. 1995-11-10 14:56:16 +00:00
Jack Jansen 81299f10f7 Added providence mailer support 1995-10-30 10:23:10 +00:00
Jack Jansen 4ec940ad04 Added (limited) compuserve error parsing 1995-10-30 10:10:19 +00:00
Sjoerd Mullender 8968624574 Script to read and parse error messages from mailer daemons.
Written by Jack, some minor changes by Sjoerd.
1995-10-19 09:35:31 +00:00
Sjoerd Mullender edb21c4edc Fixed typo: == -> =. 1995-08-29 14:22:16 +00:00
Guido van Rossum 06f4289d3f many fixes by anonymous contributor 1995-08-28 03:01:00 +00:00
Guido van Rossum e830e55606 added ftp mirror script 1995-06-20 19:31:37 +00:00
Guido van Rossum a12bbff857 mods by Gregor Schmid -- very nice! 1995-05-03 14:17:36 +00:00
Guido van Rossum 189f8fb8f7 added "pystone" benchmark 1995-03-30 09:42:43 +00:00
Guido van Rossum 26a9d37e5c new, from ../Demo/www 1995-03-15 11:26:05 +00:00
Guido van Rossum ed3c791050 moved lots of scripts from Demo/scripts to Tools/scripts 1995-03-02 15:56:30 +00:00
Guido van Rossum 514d351d45 use $INCLUDE path (Mark Hammond) 1995-01-17 17:01:40 +00:00
Guido van Rossum 07c9645413 Get rid of freeze (now its own directory).
Added some new demos.  Fixed a few others.
1994-10-03 16:45:35 +00:00
Guido van Rossum 9af22a037f newslist.py: Added search for .newslistrc.py;
pindent.py: use /usr/local/bin/python;
pathfix.py: new script to fix #! lines in a group of scripts.
1994-08-19 15:02:57 +00:00
Guido van Rossum 0038cd9e4d Added convenience functions {complete,reformat}_{filter,string,file}.
Added usage message to test program.
1994-06-07 22:19:41 +00:00
Guido van Rossum 3962fdb25a correct typos in option parsing loop 1994-05-27 14:13:46 +00:00
Guido van Rossum 01f5f62401 Added -i option to ignore general regexps 1994-05-17 09:05:54 +00:00
Guido van Rossum 1d28e1707a Initial revision 1994-05-15 18:14:33 +00:00
Guido van Rossum 7faf67caf5 Initial revision 1994-05-09 14:52:41 +00:00
Guido van Rossum 09336f9f73 Process command line arguments; skip #defines that generate invalid
Python
1994-05-03 14:37:30 +00:00
Guido van Rossum 5ec8b525d2 Restructured main, use getopt, use regular expression search instead
of prefix match
1994-01-21 15:47:00 +00:00
Guido van Rossum 0b7dfbb9b7 Initial revision 1994-01-07 11:43:11 +00:00
Guido van Rossum a635b9a6ff remove references to /ufs/guido/bin/sgi/python 1994-01-07 11:43:11 +00:00
Guido van Rossum f62f687453 Various changes, andded -c option 1994-01-07 10:55:15 +00:00
Guido van Rossum aa895c752b Initial revision 1993-06-10 14:43:53 +00:00
Guido van Rossum 09abc8e7df Ignore ,v files too 1993-06-05 18:03:30 +00:00
Guido van Rossum 41ffccbba7 *** empty log message *** 1993-04-01 20:50:35 +00:00
Guido van Rossum d5c57e1624 Microfixes 1993-04-01 20:46:40 +00:00
Guido van Rossum cf5dd9cbfd Fix bug when reporting error 1992-12-10 00:01:24 +00:00
Guido van Rossum 15f27fb6ea Adapt to modern times... 1992-12-10 00:00:58 +00:00
Guido van Rossum 1d9741742e Initial revision 1992-12-09 23:14:40 +00:00
Guido van Rossum d3592486ce Friendlier response to interrupt. Use /usr/local/*bin*/python. 1992-12-09 23:12:59 +00:00
Guido van Rossum 0cb8e8cfc0 Add .fdc and .rgb to default list of ignored extensions 1992-10-02 14:19:57 +00:00
Guido van Rossum 61700bb985 cope with filenames containing spaces 1992-08-31 10:54:54 +00:00
Guido van Rossum 0cc19450e2 Use regex instead of regexp 1992-08-31 10:54:06 +00:00
Guido van Rossum f2e1cfb8f3 Use regex and don't use path 1992-08-31 10:53:53 +00:00
Guido van Rossum 047979e3d5 Fix regexp recognizing comments to cope with unterminated comments. 1992-06-05 15:13:53 +00:00
Guido van Rossum 61cfd96003 Added two #! lines 1992-05-19 13:50:10 +00:00
Guido van Rossum ceb86daa16 Change the way ignore is assigned to 1992-05-19 13:49:16 +00:00
Guido van Rossum 4a5ab81bc9 posix -> os 1992-03-30 11:31:39 +00:00
Guido van Rossum 9a6757dade posix -> os 1992-03-30 11:15:26 +00:00
Guido van Rossum 391b8b7dee change posix/path to os 1992-03-30 11:14:36 +00:00
Guido van Rossum e7b88e7402 change posix to os 1992-03-30 11:13:59 +00:00
Guido van Rossum b2ac8092a8 change posix to os and path to os.path 1992-03-30 11:12:23 +00:00
Guido van Rossum 2ba9f30489 Initial revision 1992-03-02 16:20:32 +00:00
Guido van Rossum fcd1e6ed4d Added '-l[flags]' option. 1992-03-02 16:17:31 +00:00
Guido van Rossum bff5bb3db9 Use fnmatch; read ".xxcign" for additional patterns to ignore. 1992-03-02 16:13:27 +00:00
Guido van Rossum bdfcfccbe5 New == syntax 1992-01-01 19:35:13 +00:00
Guido van Rossum 0a60ee1c69 Cosmetic change. 1992-01-01 19:22:09 +00:00
Guido van Rossum 11e7f62dbc Use new, more generic structure for *fix.py scripts. 1992-01-01 18:38:09 +00:00
Guido van Rossum 9f39fbb5b7 Adapt the regular expression to the new class syntax. 1991-12-30 23:01:28 +00:00
Guido van Rossum 7e73fd0024 Fix bogus mode mask. 1991-12-26 13:23:22 +00:00
Guido van Rossum 2c4d7e742c Initial revision 1991-12-26 12:58:17 +00:00
Guido van Rossum 97dddba1bb Better check to avoid executables. 1991-12-18 13:39:16 +00:00
Guido van Rossum 5378d5c485 Initial revision 1991-12-18 13:38:27 +00:00
Guido van Rossum 2fa5a7fc00 Use posix.popen to read output from a command instead if command.get*. 1991-07-01 18:23:06 +00:00
Guido van Rossum 9c5c80824c Renamed path.cat to path.join. 1991-07-01 18:22:34 +00:00
Guido van Rossum bcf5012887 Add options -amc; do lstat if possible; columnize properly. 1991-07-01 18:20:35 +00:00
Guido van Rossum 185d06ea91 Added to list of bad filenames. 1991-06-04 20:44:11 +00:00