comparison 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
comparison
equal deleted inserted replaced
605:d6ead6f0ba80 606:3c2f96f1d715
72 if self.indicator is not None: 72 if self.indicator is not None:
73 return [self.indicator] 73 return [self.indicator]
74 return [self] 74 return [self]
75 75
76 76
77 cdef void autocollect(self, Player player): 77 cdef void autocollect(self, Player player) except *:
78 if self.target is None and self.player is None: 78 if self.target is None and self.player is None:
79 self.target = player 79 self.target = player
80 self.speed = player.sht.autocollection_speed 80 self.speed = player.sht.autocollection_speed
81 81
82 82
83 cdef void on_collect(self, Player player): 83 cdef void on_collect(self, Player player) except *:
84 cdef long level, poc 84 cdef long level, poc
85 85
86 if not (self.player is None or self.player is player): 86 if not (self.player is None or self.player is player):
87 return 87 return
88 88