summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2002-04-22 00:42:42 (GMT)
committerSteven M. Gava <elguavas@python.net>2002-04-22 00:42:42 (GMT)
commita2bc259dd71d53f643db13ac5077fafe9d5bacae (patch)
tree81907ddb6ca0c8b11ba6571bfbfea285f00b7f1c /Lib/idlelib
parent1c6192662da753cfefc12f05c6e2886ceb79fb72 (diff)
downloadcpython-a2bc259dd71d53f643db13ac5077fafe9d5bacae.zip
cpython-a2bc259dd71d53f643db13ac5077fafe9d5bacae.tar.gz
cpython-a2bc259dd71d53f643db13ac5077fafe9d5bacae.tar.bz2
tracking python idle changes:
Provisional fix for writefile() [SF bug # 541730]
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/IOBinding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py
index 17c196d..729f29b 100644
--- a/Lib/idlelib/IOBinding.py
+++ b/Lib/idlelib/IOBinding.py
@@ -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`