summaryrefslogtreecommitdiff
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2006-08-16 03:15:26 +0000
committerKurt B. Kaiser <kbk@shore.net>2006-08-16 03:15:26 +0000
commit2a7ff297c5958567b3c7f13a43d6bb120eb25b7d (patch)
tree38b686c0c27364ba8eea6433e4fd69d882b07b0c /Lib/idlelib
parent4dc5dd1f3b28bde2527b30d24052f00271d934ee (diff)
downloadcpython-git-2a7ff297c5958567b3c7f13a43d6bb120eb25b7d.tar.gz
The 'with' statement is now a Code Context block opener
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/CodeContext.py2
-rw-r--r--Lib/idlelib/NEWS.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/CodeContext.py b/Lib/idlelib/CodeContext.py
index 63cc82cd51..74d5b70240 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 5982396b7b..928505350a 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.