--- kivy/graphics/context_instructions.pyx.orig 2024-12-26 16:04:18 UTC +++ kivy/graphics/context_instructions.pyx @@ -86,7 +86,7 @@ cdef tuple rgb_to_hsv(float r, float g, float b): cdef tuple hsv_to_rgb(float h, float s, float v): if s == 0.0: return v, v, v - cdef long i = long(h * 6.0) + cdef long i = (h * 6.0) cdef float f = (h * 6.0) - i cdef float p = v * (1.0 - s) cdef float q = v * (1.0 - s * f) --- kivy/graphics/opengl.pyx.orig 2024-12-26 16:04:18 UTC +++ kivy/graphics/opengl.pyx @@ -689,7 +689,7 @@ def glDrawElements(GLenum mode, GLsizei count, GLenum cdef void *ptr = NULL if isinstance(indices, bytes): ptr = ((indices)) - elif isinstance(indices, (long, int)): + elif isinstance(indices, int): ptr = (indices) else: raise TypeError("Argument 'indices' has incorrect type (expected bytes or int).") @@ -1539,7 +1539,7 @@ def glVertexAttribPointer(GLuint index, GLint size, GL cdef void *ptr = NULL if isinstance(data, bytes): ptr = ((data)) - elif isinstance(data, (long, int)): + elif isinstance(data, int): ptr = (data) else: raise TypeError("Argument 'data' has incorrect type (expected bytes or int).") --- kivy/weakproxy.pyx.orig 2024-12-26 16:04:18 UTC +++ kivy/weakproxy.pyx @@ -253,9 +253,6 @@ cdef class WeakProxy(object): def __int__(self): return int(self.__ref__()) - def __long__(self): - return long(self.__ref__()) - def __float__(self): return float(self.__ref__())