fortunately, cython does not complain at seeing xrange, but let's drop
the last bit of python2.
Signed-off-by: Kefu Chai <kchai@redhat.com>
cdef char **ret = <char **>malloc(len(list_bytes) * sizeof(char *))
if ret == NULL:
raise MemoryError("malloc failed")
- for i in xrange(len(list_bytes)):
+ for i in range(len(list_bytes)):
ret[i] = <char *>list_bytes[i]
return ret
cdef size_t *ret = <size_t *>malloc(len(list_int) * sizeof(size_t))
if ret == NULL:
raise MemoryError("malloc failed")
- for i in xrange(len(list_int)):
+ for i in range(len(list_int)):
ret[i] = <size_t>list_int[i]
return ret
cdef char **ret = <char **>malloc(len(list_bytes) * sizeof(char *))
if ret == NULL:
raise MemoryError("malloc failed")
- for i in xrange(len(list_bytes)):
+ for i in range(len(list_bytes)):
ret[i] = <char *>list_bytes[i]
return ret