mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
tracking python idle changes:
Provisional fix for writefile() [SF bug # 541730]
This commit is contained in:
parent
1c6192662d
commit
a2bc259dd7
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class IOBinding:
|
||||||
self.fixlastline()
|
self.fixlastline()
|
||||||
try:
|
try:
|
||||||
f = open(filename, "w")
|
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.write(chars)
|
||||||
f.close()
|
f.close()
|
||||||
## print "saved to", `filename`
|
## print "saved to", `filename`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue