tracking python idle changes:

Provisional fix for writefile() [SF bug # 541730]
This commit is contained in:
Steven M. Gava 2002-04-22 00:42:42 +00:00
parent 1c6192662d
commit a2bc259dd7
1 changed files with 1 additions and 1 deletions

View 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`