Message167239
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. |
|
Date |
User |
Action |
Args |
2012-08-02 16:24:36 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2012-08-02 16:24:36 | serhiy.storchaka | set | messageid: <1343924676.33.0.76595941249.issue15539@psf.upfronthosting.co.za> |
2012-08-02 16:24:35 | serhiy.storchaka | link | issue15539 messages |
2012-08-02 16:24:34 | serhiy.storchaka | create | |
|