Commit Graph

12 Commits

Author SHA1 Message Date
Andrew M. Kuchling ac6df95d07 Fix use of 'file' as a variable name.
(I've tested the fixes, but please proofread anyway.)
2003-05-13 18:14:25 +00:00
Walter Dörwald aaab30e00c Apply diff2.txt from SF patch http://www.python.org/sf/572113
(with one small bugfix in bgen/bgen/scantools.py)

This replaces string module functions with string methods
for the stuff in the Tools directory. Several uses of
string.letters etc. are still remaining.
2002-09-11 20:36:02 +00:00
Tim Peters 70c4378dbc Whitespace normalization. 2001-01-17 08:48:39 +00:00
Peter Schneider-Kamp 7f589fddad add expandtabs command (-e)
change eliminate to delete (-d)
2000-07-11 16:43:16 +00:00
Guido van Rossum a04ff0fb53 Running the program through itself reveals that one end tag was
mislabeled.

(Using -c and then -e rearranges some comments, so I won't check that
in -- but it's a good test anyway.

Note that pindent is not perfect -- e.g. it doesn't know about
triple-quoted strings!)
2000-06-28 22:55:20 +00:00
Guido van Rossum 59811b189d Peter Schneider-Kamp:
Problem:
A Python program can be completed and reformatted using
Tools/scripts/pindent.py. Unfortunately there is no option for removal
of the generated "# end"-tags.  Although a few Python commands or a
"grep -v '# end '" can do wonders here, there are two drawbacks:
- not everyone has grep/time to write a Python script
- it is not checked whether the "# end"-tags were used validly

Solution:
add extra option "-e" (eliminate) to pindent.py
2000-06-28 22:47:22 +00:00
Guido van Rossum f57736e77a Translated to use re instead of regex. Also replaced one use of
L.append(a,b,c,d) with the correct L.append((a,b,c,d)).
1998-06-19 21:39:27 +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 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 1d28e1707a Initial revision 1994-05-15 18:14:33 +00:00