bpo-36152: IDLE: Remove unused parameter from colorizer (GH-12109)
Remove colorizer.ColorDelegator.close_when_done and the corresponding argument of .close(). In IDLE, both have always been None or False since 2007.
(cherry picked from commit b9f0354efce95b7557bc43ea193c4b652cd28392)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py
index e05b52a..8326032 100644
--- a/Lib/idlelib/editor.py
+++ b/Lib/idlelib/editor.py
@@ -1033,7 +1033,7 @@
self.io = None
self.undo = None
if self.color:
- self.color.close(False)
+ self.color.close()
self.color = None
self.text = None
self.tkinter_vars = None