summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/pindent.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15539: Fix backup file creation in pindent.py on WindowsSerhiy Storchaka2013-01-111-12/+22
|
* Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.Serhiy Storchaka2013-01-111-104/+60
| | | | | | | Now pindent.py works with a "with" statement. pindent.py no longer produces improper indentation. pindent.py now works with continued lines broken after "class" or "def" keywords and with continuations at the start of line. Added regression tests for pindent.py. Modernized pindent.py.
* #6912: add "with" block support to pindent.Georg Brandl2009-09-171-2/+2
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* bug [ 1072853 ] thisid not intialized in pindent.py scriptGeorg Brandl2005-06-261-0/+1
|
* Fix use of 'file' as a variable name.Andrew M. Kuchling2003-05-131-2/+2
| | | | (I've tested the fixes, but please proofread anyway.)
* Apply diff2.txt from SF patch http://www.python.org/sf/572113Walter Dörwald2002-09-111-6/+5
| | | | | | | | (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.
* 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