From: Guido van Rossum Date: Tue, 24 Sep 2002 17:52:05 +0000 (+0000) Subject: Revert Raymond H's checkin. That change depends on a new feature in X-Git-Tag: v2.2.2b1~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64a9d8a0f69fc94ecd97cf3190b86b5e95109b17;p=thirdparty%2FPython%2Fcpython.git Revert Raymond H's checkin. That change depends on a new feature in 2.3, support for source code encodings, so it shouldn't be backported (no matter how attractive the checkin msg sounded). Please, try to *use* IDLE before committing changes! --- diff --git a/Tools/idle/OutputWindow.py b/Tools/idle/OutputWindow.py index 0e7fba231ab5..f429f2e8bfb6 100644 --- a/Tools/idle/OutputWindow.py +++ b/Tools/idle/OutputWindow.py @@ -2,7 +2,6 @@ from Tkinter import * from EditorWindow import EditorWindow import re import tkMessageBox -import IOBinding class OutputWindow(EditorWindow): @@ -35,14 +34,6 @@ class OutputWindow(EditorWindow): # Act as output file def write(self, s, tags=(), mark="insert"): - # Tk assumes that byte strings are Latin-1; - # we assume that they are in the locale's encoding - if isinstance(s, str): - try: - s = unicode(s, IOBinding.encoding) - except UnicodeError: - # some other encoding; let Tcl deal with it - pass self.text.insert(mark, s, tags) self.text.see(mark) self.text.update()