mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
#13495: Avoid loading the color delegator twice in IDLE.
This commit is contained in:
parent
44571daf0e
commit
9bc7b793ea
3 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue