[issue6912] Add 'with' block support to Tools/Scripts/pindent.py

2012-12-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Actually without "next['with'] = 'end'" "with" support is broken. See 
issue15539.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6912] Add 'with' block support to Tools/Scripts/pindent.py

2009-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

Added in r74865.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6912] Add 'with' block support to Tools/Scripts/pindent.py

2009-09-14 Thread Terry J. Reedy

New submission from Terry J. Reedy :

As reported by Miles Kaufmann on python-list, 
Tools/Scripts/pindent.py
has not been updated to support 'with' blocks.

I suspect that it would be sufficient to add ",'with'" to
start = 'if', 'while', 'for', 'try', 'def', 'class'

Since there are no "next['def'/'class']" lines, I suspect none is needed
for 'with' either.

--
components: Demos and Tools
messages: 92622
nosy: tjreedy
severity: normal
status: open
title: Add 'with' block support to Tools/Scripts/pindent.py
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com