Mercurial > touhou
diff pytouhou/ui/sdl/texture.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 | b895ed2de71f |
children | a6af3ff86612 |
line wrap: on
line diff
--- a/pytouhou/ui/sdl/texture.pyx +++ b/pytouhou/ui/sdl/texture.pyx @@ -28,7 +28,7 @@ cdef class TextureManager: self.window = window - cdef void load(self, dict anms): + cdef void load(self, dict anms) except *: for anm in sorted(anms.values(), key=is_ascii): for entry in anm: if entry.texture is None: @@ -53,7 +53,7 @@ cdef class FontManager: self.window = window - cdef void load(self, dict labels): + cdef void load(self, dict labels) except *: cdef NativeText label for i, label in labels.items():