]> granicus.if.org Git - python/commitdiff
Finish bug fix applied at 58398. I missed a piece, Tal Einat found the error.
authorKurt B. Kaiser <kbk@shore.net>
Mon, 15 Oct 2007 02:40:08 +0000 (02:40 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Mon, 15 Oct 2007 02:40:08 +0000 (02:40 +0000)
Lib/idlelib/IOBinding.py

index 6ab4db0f90150cb19b969ae67886e16492e03962..b970dba1bb24a4326b980886f4d05bfc5ab9899d 100644 (file)
@@ -392,7 +392,7 @@ class IOBinding:
         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)