#13495: Avoid loading the color delegator twice in IDLE.
This commit is contained in:
parent
44571daf0e
commit
9bc7b793ea
|
@ -316,9 +316,6 @@ class EditorWindow(object):
|
||||||
self.good_load = True
|
self.good_load = True
|
||||||
is_py_src = self.ispythonsource(filename)
|
is_py_src = self.ispythonsource(filename)
|
||||||
self.set_indentation_params(is_py_src)
|
self.set_indentation_params(is_py_src)
|
||||||
if is_py_src:
|
|
||||||
self.color = color = self.ColorDelegator()
|
|
||||||
per.insertfilter(color)
|
|
||||||
else:
|
else:
|
||||||
io.set_filename(filename)
|
io.set_filename(filename)
|
||||||
self.good_load = True
|
self.good_load = True
|
||||||
|
|
|
@ -858,8 +858,6 @@ class PyShell(OutputWindow):
|
||||||
text.bind("<<open-stack-viewer>>", self.open_stack_viewer)
|
text.bind("<<open-stack-viewer>>", self.open_stack_viewer)
|
||||||
text.bind("<<toggle-debugger>>", self.toggle_debugger)
|
text.bind("<<toggle-debugger>>", self.toggle_debugger)
|
||||||
text.bind("<<toggle-jit-stack-viewer>>", self.toggle_jit_stack_viewer)
|
text.bind("<<toggle-jit-stack-viewer>>", self.toggle_jit_stack_viewer)
|
||||||
self.color = color = self.ColorDelegator()
|
|
||||||
self.per.insertfilter(color)
|
|
||||||
if use_subprocess:
|
if use_subprocess:
|
||||||
text.bind("<<view-restart>>", self.view_restart_mark)
|
text.bind("<<view-restart>>", self.view_restart_mark)
|
||||||
text.bind("<<restart-shell>>", self.restart_shell)
|
text.bind("<<restart-shell>>", self.restart_shell)
|
||||||
|
|
|
@ -135,6 +135,8 @@ Library
|
||||||
IDLE
|
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 #17798: Allow IDLE to edit new files when specified on command line.
|
||||||
|
|
||||||
- Issue #14735: Update IDLE docs to omit "Control-z on Windows".
|
- Issue #14735: Update IDLE docs to omit "Control-z on Windows".
|
||||||
|
|
Loading…
Reference in New Issue