[Python-checkins] cpython (3.3): #13495: Avoid loading the color delegator twice in IDLE.
roger.serwy
python-checkins at python.org
Mon May 6 05:15:35 CEST 2013
http://hg.python.org/cpython/rev/fef7f212fe76
changeset: 83635:fef7f212fe76
branch: 3.3
parent: 83633:6383d0c8140d
user: Roger Serwy <roger.serwy at gmail.com>
date: Sun May 05 22:15:44 2013 -0500
summary:
#13495: Avoid loading the color delegator twice in IDLE.
files:
Lib/idlelib/EditorWindow.py | 3 ---
Lib/idlelib/PyShell.py | 2 --
Misc/NEWS | 2 ++
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -316,9 +316,6 @@
self.good_load = True
is_py_src = self.ispythonsource(filename)
self.set_indentation_params(is_py_src)
- if is_py_src:
- self.color = color = self.ColorDelegator()
- per.insertfilter(color)
else:
io.set_filename(filename)
self.good_load = True
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -858,8 +858,6 @@
text.bind("<<open-stack-viewer>>", self.open_stack_viewer)
text.bind("<<toggle-debugger>>", self.toggle_debugger)
text.bind("<<toggle-jit-stack-viewer>>", self.toggle_jit_stack_viewer)
- self.color = color = self.ColorDelegator()
- self.per.insertfilter(color)
if use_subprocess:
text.bind("<<view-restart>>", self.view_restart_mark)
text.bind("<<restart-shell>>", self.restart_shell)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -135,6 +135,8 @@
IDLE
----
+- Issue #13495: Avoid loading the color delegator twice in IDLE.
+
- Issue #17798: Allow IDLE to edit new files when specified on command line.
- Issue #14735: Update IDLE docs to omit "Control-z on Windows".
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list