comparison pytouhou/ui/gamerunner.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 12756994a92c
children a6af3ff86612
comparison
equal deleted inserted replaced
605:d6ead6f0ba80 606:3c2f96f1d715
112 if self.renderer is not None: 112 if self.renderer is not None:
113 filename = 'screenshot/frame%06d.ppm' % self.game.frame 113 filename = 'screenshot/frame%06d.ppm' % self.game.frame
114 self.renderer.capture(filename, self.width, self.height) 114 self.renderer.capture(filename, self.width, self.height)
115 115
116 116
117 cpdef bint update(self, bint render) except? False: 117 cpdef bint update(self, bint render) except -1:
118 cdef long keystate 118 cdef long keystate
119 capture = False 119 capture = False
120 120
121 if self.background is not None: 121 if self.background is not None:
122 self.background.update(self.game.frame) 122 self.background.update(self.game.frame)