Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2bc259

Browse files
author
Steven M. Gava
committed
tracking python idle changes:
Provisional fix for writefile() [SF bug # 541730]
1 parent 1c61926 commit a2bc259

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/idlelib/IOBinding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def writefile(self, filename):
178178
self.fixlastline()
179179
try:
180180
f = open(filename, "w")
181-
chars = self.text.get("1.0", "end-1c")
181+
chars = str(self.text.get("1.0", "end-1c"))
182182
f.write(chars)
183183
f.close()
184184
## print "saved to", `filename`

0 commit comments

Comments
 (0)