diff options
| author | 2012-03-20 22:56:33 +0100 | |
|---|---|---|
| committer | 2012-03-20 23:25:56 +0100 | |
| commit | 2d9ecc3d805e616b2bf85c0b8e99737e9b30c89d (patch) | |
| tree | 48e924795c6bf3c217de61efe6048f6bb6573244 /cython/lockdown.pxi | |
| 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/lockdown.pxi')
| -rw-r--r-- | cython/lockdown.pxi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cython/lockdown.pxi b/cython/lockdown.pxi index 8463738..b5207e8 100644 --- a/cython/lockdown.pxi +++ b/cython/lockdown.pxi | |||
| @@ -90,7 +90,7 @@ cdef class LockdownPairRecord: | |||
| 90 | return result | 90 | return result |
| 91 | 91 | ||
| 92 | cdef class LockdownClient(PropertyListService): | 92 | cdef class LockdownClient(PropertyListService): |
| 93 | def __cinit__(self, iDevice device not None, bytes label="", bool handshake=True, *args, **kwargs): | 93 | def __cinit__(self, iDevice device not None, bytes label=b'', bint handshake=True, *args, **kwargs): |
| 94 | cdef: | 94 | cdef: |
| 95 | lockdownd_error_t err | 95 | lockdownd_error_t err |
| 96 | char* c_label = NULL | 96 | char* c_label = NULL |
| @@ -125,7 +125,7 @@ cdef class LockdownClient(PropertyListService): | |||
| 125 | raise | 125 | raise |
| 126 | finally: | 126 | finally: |
| 127 | if c_type != NULL: | 127 | if c_type != NULL: |
| 128 | stdlib.free(c_type) | 128 | free(c_type) |
| 129 | 129 | ||
| 130 | cpdef plist.Node get_value(self, bytes domain=None, bytes key=None): | 130 | cpdef plist.Node get_value(self, bytes domain=None, bytes key=None): |
| 131 | cdef: | 131 | cdef: |
| @@ -212,7 +212,7 @@ cdef class LockdownClient(PropertyListService): | |||
| 212 | raise | 212 | raise |
| 213 | finally: | 213 | finally: |
| 214 | if c_session_id != NULL: | 214 | if c_session_id != NULL: |
| 215 | stdlib.free(c_session_id) | 215 | free(c_session_id) |
| 216 | 216 | ||
| 217 | cpdef stop_session(self, bytes session_id): | 217 | cpdef stop_session(self, bytes session_id): |
| 218 | self.handle_error(lockdownd_stop_session(self._c_client, session_id)) | 218 | self.handle_error(lockdownd_stop_session(self._c_client, session_id)) |
