[Python-3000-checkins] r58465 - python/branches/py3k/Lib/idlelib/IOBinding.py

kurt.kaiser python-3000-checkins at python.org
Mon Oct 15 04:40:08 CEST 2007


Author: kurt.kaiser
Date: Mon Oct 15 04:40:08 2007
New Revision: 58465

Modified:
   python/branches/py3k/Lib/idlelib/IOBinding.py
Log:
Finish bug fix applied at 58398. I missed a piece, Tal Einat found the error.


Modified: python/branches/py3k/Lib/idlelib/IOBinding.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/IOBinding.py	(original)
+++ python/branches/py3k/Lib/idlelib/IOBinding.py	Mon Oct 15 04:40:08 2007
@@ -392,7 +392,7 @@
         text = self.text.get("1.0", "end-1c")
         if self.eol_convention != "\n":
             text = text.replace("\n", self.eol_convention)
-        chars = self.encode(self.text.get("1.0", "end-1c"))
+        chars = self.encode(text)
         try:
             f = open(filename, "wb")
             f.write(chars)


More information about the Python-3000-checkins mailing list