]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The 'with' statement is now a Code Context block opener
authorKurt B. Kaiser <kbk@shore.net>
Wed, 16 Aug 2006 03:15:26 +0000 (03:15 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 16 Aug 2006 03:15:26 +0000 (03:15 +0000)
Lib/idlelib/CodeContext.py
Lib/idlelib/NEWS.txt

index 63cc82cd51261514914a3680385329d1e4f5cf78..74d5b70240d3b519af80cb1e511f344d44bbf771 100644 (file)
@@ -15,7 +15,7 @@ import re
 from sys import maxint as INFINITY
 
 BLOCKOPENERS = set(["class", "def", "elif", "else", "except", "finally", "for",
-                    "if", "try", "while"])
+                    "if", "try", "while", "with"])
 UPDATEINTERVAL = 100 # millisec
 FONTUPDATEINTERVAL = 1000 # millisec
 
index 5982396b7b6935f14d1a260ed819b468ac9e468f..928505350ad76bec601400b103a3a3e3b9155bb9 100644 (file)
@@ -3,6 +3,8 @@ What's New in IDLE 1.2c1?
 
 *Release date: XX-AUG-2006*
 
+- The 'with' statement is now a Code Context block opener
+
 - Retrieval of previous shell command was not always preserving indentation
   (since 1.2a1) Patch 1528468 Tal Einat.