diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-04-01 17:24:01 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-04-01 17:24:01 (GMT) |
commit | c1feef635fcc370621d0e49e94ff14db19c1e937 (patch) | |
tree | 2ebb6823e06e00c95934ff53647250dcadf01eb4 | |
parent | 1670f1ba9fb4a5a08870ffbabe04f4754cfa8c2f (diff) |
some XO4-related changes
-rw-r--r-- | NEWS | 11 | ||||
-rw-r--r-- | activity/activity.info | 2 | ||||
-rwxr-xr-x | turtleblocks.py | 5 |
3 files changed, 16 insertions, 2 deletions
@@ -1,3 +1,14 @@ +175 + +ENHANCEMENT: +* Power management utility: Alan Aguiar + +BUG FIXES: +* Force audio sensors to use single channel on XO 4 +* Fix problem with file naming when saving images in GNOME +* Fix problem with file naming when saving Logo code in GNOME +* Use newline (\n) instead of return (\r) in exported Logo code + 174 ENHANCEMENTS: diff --git a/activity/activity.info b/activity/activity.info index 7ebcab1..3d1e9d5 100644 --- a/activity/activity.info +++ b/activity/activity.info @@ -1,6 +1,6 @@ [Activity] name = TurtleBlocks -activity_version = 174 +activity_version = 175 license = MIT bundle_id = org.laptop.TurtleArtActivity exec = sugar-activity TurtleArtActivity.TurtleArtActivity diff --git a/turtleblocks.py b/turtleblocks.py index 9947fe4..2fe9b45 100755 --- a/turtleblocks.py +++ b/turtleblocks.py @@ -496,7 +496,10 @@ class TurtleMain(): save_type = '.lg' filename, self.tw.load_save_folder = get_save_name(save_type, self.tw.load_save_folder, 'logosession') - f = file(filename, 'w') + if type(filename) == unicode: + f = file(filename.encode('ascii', 'replace'), 'w') + else: + f = file(filename, 'w') f.write(logocode) f.close() |