]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
tracking python idle changes:
authorSteven M. Gava <elguavas@python.net>
Mon, 22 Apr 2002 00:42:42 +0000 (00:42 +0000)
committerSteven M. Gava <elguavas@python.net>
Mon, 22 Apr 2002 00:42:42 +0000 (00:42 +0000)
Provisional fix for writefile() [SF bug # 541730]

Lib/idlelib/IOBinding.py

index 17c196db31de7b395f855b2e399ea70792015fe5..729f29bf8ce60dbc402a192161aa1531aa8ac2ac 100644 (file)
@@ -178,7 +178,7 @@ class IOBinding:
         self.fixlastline()
         try:
             f = open(filename, "w")
-            chars = self.text.get("1.0", "end-1c")
+            chars = str(self.text.get("1.0", "end-1c"))
             f.write(chars)
             f.close()
             ## print "saved to", `filename`