]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#13495: Avoid loading the color delegator twice in IDLE.
authorRoger Serwy <roger.serwy@gmail.com>
Mon, 6 May 2013 03:15:44 +0000 (22:15 -0500)
committerRoger Serwy <roger.serwy@gmail.com>
Mon, 6 May 2013 03:15:44 +0000 (22:15 -0500)
Lib/idlelib/EditorWindow.py
Lib/idlelib/PyShell.py
Misc/NEWS

index 19bbdd60f9be668ccc8eaa30068dc49a8a949a70..27c989cb117e0d0869b3f0c250cba3328e3345f7 100644 (file)
@@ -316,9 +316,6 @@ class EditorWindow(object):
                     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
index 177e49e55e461887b0144a8946e7b8059fb1103a..1805644b6ecf4c39e5c443f23198f81407e863bc 100644 (file)
@@ -858,8 +858,6 @@ class PyShell(OutputWindow):
         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)
index b4ba70ba78abd84d27d03a4dae99e3eede12153f..39e580b20e66ef30226d4da8ee6b48a51f428a3b 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -135,6 +135,8 @@ Library
 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".