summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/pindent.py
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace normalization.Tim Peters2001-01-171-380/+380
|
* add expandtabs command (-e)Peter Schneider-Kamp2000-07-111-37/+64
| | | | change eliminate to delete (-d)
* Running the program through itself reveals that one end tag wasGuido van Rossum2000-06-281-1/+1
| | | | | | | | | | 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!)
* Peter Schneider-Kamp:Guido van Rossum2000-06-281-10/+75
| | | | | | | | | | | | | 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
* Translated to use re instead of regex. Also replaced one use ofGuido van Rossum1998-06-191-33/+45
| | | | L.append(a,b,c,d) with the correct L.append((a,b,c,d)).
* /usr/local/bin/python -> /usr/bin/env pythonGuido van Rossum1996-11-271-2/+1
|
* newslist.py: Added search for .newslistrc.py;Guido van Rossum1994-08-191-1/+1
| | | | | pindent.py: use /usr/local/bin/python; pathfix.py: new script to fix #! lines in a group of scripts.
* Added convenience functions {complete,reformat}_{filter,string,file}.Guido van Rossum1994-06-071-19/+145
| | | | Added usage message to test program.
* correct typos in option parsing loopGuido van Rossum1994-05-271-2/+2
|
* Initial revisionGuido van Rossum1994-05-151-0/+314