Skip to content

Commit 16c5bd9

Browse files
committed
Added raise to list of dedent words
1 parent 199a6bc commit 16c5bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ def next_indentation(line, tab_length):
10221022
if line.rstrip().endswith(':'):
10231023
indentation += 1
10241024
elif indentation >= 1:
1025-
if line.lstrip().startswith(('return', 'pass')):
1025+
if line.lstrip().startswith(('return', 'pass', 'raise')):
10261026
indentation -= 1
10271027
return indentation
10281028

0 commit comments

Comments
 (0)