New submission from Serhiy Storchaka:

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.

----------
components: Demos and Tools
files: pindent.patch
keywords: patch
messages: 167239
nosy: storchaka
priority: normal
severity: normal
status: open
title: Fixing Tools/scripts/pindent.py
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file26665/pindent.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15539>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to