Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/page.py
diff options
context:
space:
mode:
Diffstat (limited to 'page.py')
-rw-r--r--page.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/page.py b/page.py
index 9cfd71b..6931055 100644
--- a/page.py
+++ b/page.py
@@ -334,7 +334,7 @@ class Page():
self._color_data = []
self._image_data = {} # {letter: [(Sprite, image_sound_path)...]}
self._pictures = []
- f = codecs.open(path, encoding='utf-8')
+ f = open(path)
for line in f:
if len(line) > 0 and line[0] not in '#\n':
words = line.split(', ')
@@ -384,8 +384,6 @@ class Page():
def svg_str_to_pixbuf(svg_string):
''' Load pixbuf from SVG string. '''
pl = GdkPixbuf.PixbufLoader.new_with_type('svg')
- if type(svg_string) == unicode:
- svg_string = svg_string.encode('ascii', 'replace')
pl.write(svg_string)
pl.close()
return pl.get_pixbuf()