Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleblocks.py
diff options
context:
space:
mode:
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-xturtleblocks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index 1e6495f..55a02dc 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -569,6 +569,7 @@ Would you like to save before quitting?'))
if pyee.block is not None:
pyee.block.highlight()
self.tw.showlabel('status', str(pyee))
+ print pyee
return
if not pythoncode:
return
@@ -582,7 +583,7 @@ Would you like to save before quitting?'))
(filename, self.tw.load_save_folder) = get_save_name(
save_type, self.tw.load_save_folder, default_name)
if isinstance(filename, unicode):
- filename = filename.encode('utf8')
+ filename = filename.encode('utf-8')
if filename is not None:
f = file(filename, 'w')
f.write(pythoncode)