summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/pindent.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/scripts/pindent.py')
-rwxr-xr-xTools/scripts/pindent.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/pindent.py b/Tools/scripts/pindent.py
index 3f3000d..15b6399 100755
--- a/Tools/scripts/pindent.py
+++ b/Tools/scripts/pindent.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
# This file contains a class and a main program that perform three
# related (though complimentary) formatting operations on Python
@@ -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: