diff lisp/progmodes/python.el @ 110115:fae81355c62c

* progmodes/python.el (python-block-pairs): Allow use of "finally" with "else" (Bug#3991).
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 22 Aug 2010 20:44:55 -0400
parents 454cfd5e9cc0
children 0dcf6ddbe02b 85a2b871f225
line wrap: on
line diff
--- a/lisp/progmodes/python.el	Sun Aug 22 19:50:38 2010 -0400
+++ b/lisp/progmodes/python.el	Sun Aug 22 20:44:55 2010 -0400
@@ -755,7 +755,7 @@
   '(("else" "if" "elif" "while" "for" "try" "except")
     ("elif" "if" "elif")
     ("except" "try" "except")
-    ("finally" "try" "except"))
+    ("finally" "else" "try" "except"))
   "Alist of keyword matches.
 The car of an element is a keyword introducing a statement which
 can close a block opened by a keyword in the cdr.")