From: Roger Serwy Date: Mon, 6 May 2013 03:15:44 +0000 (-0500) Subject: #13495: Avoid loading the color delegator twice in IDLE. X-Git-Tag: v3.3.2~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bc7b793ead980204475c5c2309217a43b22633a;p=thirdparty%2FPython%2Fcpython.git #13495: Avoid loading the color delegator twice in IDLE. --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 19bbdd60f9be..27c989cb117e 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -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 diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 177e49e55e46..1805644b6ecf 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -858,8 +858,6 @@ class PyShell(OutputWindow): text.bind("<>", self.open_stack_viewer) text.bind("<>", self.toggle_debugger) text.bind("<>", self.toggle_jit_stack_viewer) - self.color = color = self.ColorDelegator() - self.per.insertfilter(color) if use_subprocess: text.bind("<>", self.view_restart_mark) text.bind("<>", self.restart_shell) diff --git a/Misc/NEWS b/Misc/NEWS index b4ba70ba78ab..39e580b20e66 100644 --- 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".