From: Kurt B. Kaiser Date: Wed, 16 Aug 2006 03:15:26 +0000 (+0000) Subject: The 'with' statement is now a Code Context block opener X-Git-Tag: v2.5c1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a7ff297c5958567b3c7f13a43d6bb120eb25b7d;p=thirdparty%2FPython%2Fcpython.git The 'with' statement is now a Code Context block opener --- diff --git a/Lib/idlelib/CodeContext.py b/Lib/idlelib/CodeContext.py index 63cc82cd5126..74d5b70240d3 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 5982396b7b69..928505350ad7 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.