Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 464c94a

Browse files
committed
(py-no-outdent-re): fixed the regexp for try: clauses
1 parent 3874a3d commit 464c94a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Misc/python-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Currently-active file is at the head of the list.")
319319

320320
(defconst py-no-outdent-re
321321
(concat "\\(" (mapconcat 'identity
322-
'("try\\s +.*:"
322+
'("try:"
323323
"except\\(\\s +.*\\)?:"
324324
"while\\s +.*:"
325325
"for\\s +.*:"

0 commit comments

Comments
 (0)