This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2012-08-02.16:24:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343924676.33.0.76595941249.issue15539@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch which fixes some bugs in Tools/scripts/pindent.py and modernizes it with regard to the new Python features abilities that have made since 1994.

1. Now pindent works with "with".
2. Now pindent does not produce improper indentation (tabs by default for space-indented file). It uses for the end-marks indentation the same sequence of whitespaces that for start operator indentation.
3. Now pindent works with escaped newline "\\\n" at start of line and after "class" and "def".
4. Now pindent does not produce indentation for empty line.
5. Fixed one type in help message.
6. Using io.StringIO.
7. Using booleans, augmented assignments, list.pop(), with operators, etc.
History
Date User Action Args
2012-08-02 16:24:36serhiy.storchakasetrecipients: + serhiy.storchaka
2012-08-02 16:24:36serhiy.storchakasetmessageid: <1343924676.33.0.76595941249.issue15539@psf.upfronthosting.co.za>
2012-08-02 16:24:35serhiy.storchakalinkissue15539 messages
2012-08-02 16:24:34serhiy.storchakacreate