summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-17 07:49:37 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-17 07:49:37 (GMT)
commitaf09b60aac4331c6ebc48eac9c728b8ca0a838b1 (patch)
treeb5c6427b8244a5d0b9c51488139a8f502839e052
parent6fedc5252d21bc8d909b635baf7d73a44eb84364 (diff)
downloadcpython-af09b60aac4331c6ebc48eac9c728b8ca0a838b1.zip
cpython-af09b60aac4331c6ebc48eac9c728b8ca0a838b1.tar.gz
cpython-af09b60aac4331c6ebc48eac9c728b8ca0a838b1.tar.bz2
#6912: add "with" block support to pindent.
-rwxr-xr-xTools/scripts/pindent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/pindent.py b/Tools/scripts/pindent.py
index ec440d1..7bfc415 100755
--- a/Tools/scripts/pindent.py
+++ b/Tools/scripts/pindent.py
@@ -88,10 +88,10 @@ next = {}
next['if'] = next['elif'] = 'elif', 'else', 'end'
next['while'] = next['for'] = 'else', 'end'
next['try'] = 'except', 'finally'
-next['except'] = 'except', 'else', 'end'
+next['except'] = 'except', 'else', 'finally', 'end'
next['else'] = next['finally'] = next['def'] = next['class'] = 'end'
next['end'] = ()
-start = 'if', 'while', 'for', 'try', 'def', 'class'
+start = 'if', 'while', 'for', 'try', 'with', 'def', 'class'
class PythonIndenter: