summaryrefslogtreecommitdiffstats
path: root/Tools/idle/IOBinding.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/idle/IOBinding.py')
-rw-r--r--Tools/idle/IOBinding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/idle/IOBinding.py b/Tools/idle/IOBinding.py
index dfea0b6..db9fbd3 100644
--- a/Tools/idle/IOBinding.py
+++ b/Tools/idle/IOBinding.py
@@ -148,9 +148,9 @@ class IOBinding:
def writefile(self, filename):
self.fixlastline()
+ chars = str(self.text.get("1.0", "end-1c"))
try:
f = open(filename, "w")
- chars = self.text.get("1.0", "end-1c")
f.write(chars)
f.close()
## print "saved to", `filename`