summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-09-27 00:34:31 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-09-27 00:34:31 (GMT)
commit46466b4c9228de804521e94df48e58490a35466e (patch)
treeedcbc180a047f0872ac420a9fe311c4a8837dcaa
parent84f4803f4f7ccf40cd777d1e9627528c30bc9053 (diff)
downloadcpython-46466b4c9228de804521e94df48e58490a35466e.zip
cpython-46466b4c9228de804521e94df48e58490a35466e.tar.gz
cpython-46466b4c9228de804521e94df48e58490a35466e.tar.bz2
Revert Rev 1.6
"Merge Py Idle changes: Rev 1.7 [Python-idle] loewis Convert characters from the locale's encoding on output. Reject characters outside the locale's encoding on input." Not compatible with Python 2.2.1. Forwardport as a SF patch.
-rw-r--r--Lib/idlelib/OutputWindow.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/idlelib/OutputWindow.py b/Lib/idlelib/OutputWindow.py
index 181238f..7522720 100644
--- a/Lib/idlelib/OutputWindow.py
+++ b/Lib/idlelib/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()