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.py5
1 files changed, 4 insertions, 1 deletions
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()