diff pytouhou/game/item.pyx @ 606:3c2f96f1d715

Fix compilation under Cython 0.22, by making the pyx and the pxd declarations’ except clause similar.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 26 Nov 2014 13:36:38 +0100
parents e15672733c93
children a6af3ff86612
line wrap: on
line diff
--- a/pytouhou/game/item.pyx
+++ b/pytouhou/game/item.pyx
@@ -74,13 +74,13 @@ cdef class Item(Element):
             return [self]
 
 
-    cdef void autocollect(self, Player player):
+    cdef void autocollect(self, Player player) except *:
         if self.target is None and self.player is None:
             self.target = player
             self.speed = player.sht.autocollection_speed
 
 
-    cdef void on_collect(self, Player player):
+    cdef void on_collect(self, Player player) except *:
         cdef long level, poc
 
         if not (self.player is None or self.player is player):