summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/pindent.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15539: Fix a backup file creation in pindent.py on Windows.Serhiy Storchaka2013-01-111-12/+20
|\
| * Issue #15539: Fix a backup file creation in pindent.py on Windows.Serhiy Storchaka2013-01-111-12/+20
| |
* | 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.
| * 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.
* | Use OESeeror instead of os.error (#16720)Andrew Svetlov2012-12-241-3/+3
|/ | | | Patch by Serhiy Storchaka.
* convert shebang lines: python -> python3Benjamin Peterson2010-03-111-1/+1
|
* Merged revisions 74865,75175,75180 via svnmerge fromBenjamin Peterson2009-10-041-2/+2
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74865 | georg.brandl | 2009-09-17 02:49:37 -0500 (Thu, 17 Sep 2009) | 1 line #6912: add "with" block support to pindent. ........ r75175 | georg.brandl | 2009-10-01 15:11:14 -0500 (Thu, 01 Oct 2009) | 1 line Fix some weird whitespace and two other overlong lines. ........ r75180 | georg.brandl | 2009-10-01 15:59:31 -0500 (Thu, 01 Oct 2009) | 1 line #7031: Add TestCase.assertIsInstance and negated method. ........
* Ran 2to3 over scripts directory.Georg Brandl2008-05-161-2/+2
|
* Merged revisions 60990-61002 via svnmerge fromChristian Heimes2008-02-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r60990 | eric.smith | 2008-02-23 17:05:26 +0100 (Sat, 23 Feb 2008) | 1 line Removed duplicate Py_CHARMASK define. It's already defined in Python.h. ........ r60991 | andrew.kuchling | 2008-02-23 17:23:05 +0100 (Sat, 23 Feb 2008) | 4 lines #1330538: Improve comparison of xmlrpclib.DateTime and datetime instances. Remove automatic handling of datetime.date and datetime.time. This breaks backward compatibility, but python-dev discussion was strongly against this automatic conversion; see the bug for a link. ........ r60994 | andrew.kuchling | 2008-02-23 17:39:43 +0100 (Sat, 23 Feb 2008) | 1 line #835521: Add index entries for various pickle-protocol methods and attributes ........ r60995 | andrew.kuchling | 2008-02-23 18:10:46 +0100 (Sat, 23 Feb 2008) | 2 lines #1433694: minidom's .normalize() failed to set .nextSibling for last element. Fix by Malte Helmert ........ r61000 | christian.heimes | 2008-02-23 18:40:11 +0100 (Sat, 23 Feb 2008) | 1 line Patch #2167 from calvin: Remove unused imports ........ r61001 | christian.heimes | 2008-02-23 18:42:31 +0100 (Sat, 23 Feb 2008) | 1 line Patch #1957: syslogmodule: Release GIL when calling syslog(3) ........ r61002 | christian.heimes | 2008-02-23 18:52:07 +0100 (Sat, 23 Feb 2008) | 2 lines Issue #2051 and patch from Alexander Belopolsky: Permission for pyc and pyo files are inherited from the py file. ........
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-1/+1
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* 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