Skip to content

bpo-13153: Test IDLE Windows no-color astral paste fix #16363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Lib/idlelib/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _sphinx_version():

class EditorWindow(object):
from idlelib.percolator import Percolator
from idlelib.colorizer import ColorDelegator, color_config
# from idlelib.colorizer import ColorDelegator, color_config
from idlelib.undo import UndoDelegator
from idlelib.iomenu import IOBinding, encoding
from idlelib import mainmenu
Expand Down Expand Up @@ -775,6 +775,7 @@ def filename_change_hook(self):
self.ResetColorizer()

def _addcolorizer(self):
return
if self.color:
return
if self.ispythonsource(self.io.filename):
Expand All @@ -795,6 +796,7 @@ def _rmcolorizer(self):
def ResetColorizer(self):
"Update the color theme"
# Called from self.filename_change_hook and from configdialog.py
return
self._rmcolorizer()
self._addcolorizer()
EditorWindow.color_config(self.text)
Expand Down