Commits

Kurt B. Kaiser  committed 95f6566

The 'with' statement is now a Code Context block opener

  • Participants
  • Parent commits 64b3306
  • Branches legacy-trunk

Comments (0)

Files changed (2)

File Lib/idlelib/CodeContext.py

 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
 

File Lib/idlelib/NEWS.txt

 
 *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.