diff options
| author | 2012-03-20 22:56:33 +0100 | |
|---|---|---|
| committer | 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): | |||
| 134 | cdef inline BaseError _error(self, int16_t ret): | 134 | cdef inline BaseError _error(self, int16_t ret): |
| 135 | return iDeviceError(ret) | 135 | return iDeviceError(ret) |
| 136 | 136 | ||
| 137 | cimport stdlib | 137 | from libc.stdlib cimport * |
| 138 | 138 | ||
| 139 | cdef class iDevice(Base): | 139 | cdef class iDevice(Base): |
| 140 | def __cinit__(self, object uuid=None, *args, **kwargs): | 140 | def __cinit__(self, object uuid=None, *args, **kwargs): |
| @@ -180,7 +180,7 @@ cdef class iDevice(Base): | |||
| 180 | return uuid | 180 | return uuid |
| 181 | except Exception, e: | 181 | except Exception, e: |
| 182 | if uuid != NULL: | 182 | if uuid != NULL: |
| 183 | stdlib.free(uuid) | 183 | free(uuid) |
| 184 | property handle: | 184 | property handle: |
| 185 | def __get__(self): | 185 | def __get__(self): |
| 186 | cdef uint32_t handle | 186 | cdef uint32_t handle |
