From c1feef635fcc370621d0e49e94ff14db19c1e937 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 01 Apr 2013 17:24:01 +0000 Subject: some XO4-related changes --- diff --git a/NEWS b/NEWS index 4185d16..0fc53e0 100644 --- a/NEWS +++ b/NEWS @@ -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() -- cgit v0.9.1