From 2d9ecc3d805e616b2bf85c0b8e99737e9b30c89d Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 20 Mar 2012 22:56:33 +0100 Subject: cython: Update to latest API and fix deprecation warnings with cython 0.13+ --- cython/imobiledevice.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cython/imobiledevice.pyx') diff --git a/cython/imobiledevice.pyx b/cython/imobiledevice.pyx index 7898290..654288e 100644 --- a/cython/imobiledevice.pyx +++ b/cython/imobiledevice.pyx @@ -134,7 +134,7 @@ cdef class iDeviceConnection(Base): cdef inline BaseError _error(self, int16_t ret): return iDeviceError(ret) -cimport stdlib +from libc.stdlib cimport * cdef class iDevice(Base): def __cinit__(self, object uuid=None, *args, **kwargs): @@ -180,7 +180,7 @@ cdef class iDevice(Base): return uuid except Exception, e: if uuid != NULL: - stdlib.free(uuid) + free(uuid) property handle: def __get__(self): cdef uint32_t handle -- cgit v1.1-32-gdbae