diff options
author | Martin Szulecki | 2012-03-20 22:56:33 +0100 |
---|---|---|
committer | Martin Szulecki | 2012-03-20 23:25:56 +0100 |
commit | 2d9ecc3d805e616b2bf85c0b8e99737e9b30c89d (patch) | |
tree | 48e924795c6bf3c217de61efe6048f6bb6573244 /cython/imobiledevice.pyx | |
parent | 3e9d17ccd5212c110db9cfb5daa2d889d0a1aee4 (diff) | |
download | libimobiledevice-2d9ecc3d805e616b2bf85c0b8e99737e9b30c89d.tar.gz libimobiledevice-2d9ecc3d805e616b2bf85c0b8e99737e9b30c89d.tar.bz2 |
cython: Update to latest API and fix deprecation warnings with cython 0.13+
Diffstat (limited to 'cython/imobiledevice.pyx')
-rw-r--r-- | cython/imobiledevice.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |