From 2a7ff297c5958567b3c7f13a43d6bb120eb25b7d Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Wed, 16 Aug 2006 03:15:26 +0000 Subject: The 'with' statement is now a Code Context block opener --- Lib/idlelib/CodeContext.py | 2 +- Lib/idlelib/NEWS.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/CodeContext.py b/Lib/idlelib/CodeContext.py index 63cc82c..74d5b70 100644 --- a/Lib/idlelib/CodeContext.py +++ b/Lib/idlelib/CodeContext.py @@ -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 diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 5982396..9285053 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -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. -- cgit v0.12