comparison pytouhou/ui/window.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 ab131d04987d
children a6af3ff86612
comparison
equal deleted inserted replaced
605:d6ead6f0ba80 606:3c2f96f1d715
69 pass 69 pass
70 70
71 cdef void finish(self) except *: 71 cdef void finish(self) except *:
72 pass 72 pass
73 73
74 cpdef bint update(self, bint render) except? False: 74 cpdef bint update(self, bint render) except -1:
75 return False 75 return False
76 76
77 77
78 78
79 cdef class Window: 79 cdef class Window:
110 if self.runner is not None: 110 if self.runner is not None:
111 self.runner.finish() 111 self.runner.finish()
112 112
113 113
114 @cython.cdivision(True) 114 @cython.cdivision(True)
115 cdef bint run_frame(self) except? False: 115 cdef bint run_frame(self) except -1:
116 cdef bint render = (self.win is not None and 116 cdef bint render = (self.win is not None and
117 (self.frameskip <= 1 or not self.frame % self.frameskip)) 117 (self.frameskip <= 1 or not self.frame % self.frameskip))
118 118
119 running = False 119 running = False
120 if self.runner is not None: 120 if self.runner is not None: