[Python-checkins] cpython (merge 3.3 -> default): #17613: merge with 3.3.
roger.serwy
python-checkins at python.org
Sun Apr 7 19:42:07 CEST 2013
http://hg.python.org/cpython/rev/b45675223885
changeset: 83190:b45675223885
parent: 83187:5219c1271156
parent: 83189:8b793a946acb
user: Roger Serwy <roger.serwy at gmail.com>
date: Sun Apr 07 12:42:13 2013 -0500
summary:
#17613: merge with 3.3.
files:
Lib/idlelib/ColorDelegator.py | 4 ++++
Misc/NEWS | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Lib/idlelib/ColorDelegator.py b/Lib/idlelib/ColorDelegator.py
--- a/Lib/idlelib/ColorDelegator.py
+++ b/Lib/idlelib/ColorDelegator.py
@@ -51,6 +51,10 @@
self.config_colors()
self.bind("<<toggle-auto-coloring>>", self.toggle_colorize_event)
self.notify_range("1.0", "end")
+ else:
+ # No delegate - stop any colorizing
+ self.stop_colorizing = True
+ self.allow_colorizing = False
def config_colors(self):
for tag, cnf in self.tagdefs.items():
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1015,6 +1015,8 @@
IDLE
----
+- Issue #17613: Prevent traceback when removing syntax colorizer in IDLE.
+
- Issue #1207589: Backwards-compatibility patch for right-click menu in IDLE.
- Issue #16887: IDLE now accepts Cancel in tabify/untabify dialog box.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list