Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TurtleArtActivity.py1
-rwxr-xr-xturtleblocks.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index c2980bb..c413358 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -227,6 +227,7 @@ class TurtleArtActivity(activity.Activity):
if pyee.block is not None:
pyee.block.highlight()
self.tw.showlabel('status', str(pyee))
+ _logger.debug(pyee)
return
if not pythoncode:
return
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)