diff Lib/idlelib/PyShell.py @ 77267:86f62adb09cf

Issue #14962: merge
author Ned Deily <nad@acm.org>
date Thu, 31 May 2012 09:58:08 -0700
parents 21862628a013 9d0c3a835bfe
children 4915cd0cb7af
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Thu May 31 15:09:21 2012 +0000
+++ b/Lib/idlelib/PyShell.py	Thu May 31 09:58:08 2012 -0700
@@ -309,6 +309,11 @@
             "console": idleConf.GetHighlight(theme, "console"),
         })
 
+    def removecolors(self):
+        # Don't remove shell color tags before "iomark"
+        for tag in self.tagdefs:
+            self.tag_remove(tag, "iomark", "end")
+
 class ModifiedUndoDelegator(UndoDelegator):
     "Extend base class: forbid insert/delete before the I/O mark"