diff pytouhou/game/item.pyx @ 590:e15672733c93

Switch to Python 3.x instead of 2.7.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 30 Sep 2014 17:14:24 +0200
parents e992927f07a8
children 3c2f96f1d715
line wrap: on
line diff
--- a/pytouhou/game/item.pyx
+++ b/pytouhou/game/item.pyx
@@ -157,7 +157,7 @@ cdef class Item(Element):
         if score > 0:
             player.score += score
             if label is None:
-                label = self._game.new_label((self.x, self.y), str(score))
+                label = self._game.new_label((self.x, self.y), str(score).encode())
                 if color != 'white':
                     label.set_color(color)