diff options
Diffstat (limited to 'cython/mobilesync.pxi')
| -rw-r--r-- | cython/mobilesync.pxi | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cython/mobilesync.pxi b/cython/mobilesync.pxi index 1b36ba7..00b511f 100644 --- a/cython/mobilesync.pxi +++ b/cython/mobilesync.pxi | |||
| @@ -33,11 +33,7 @@ cdef class MobileSyncClient(DeviceLinkService): | |||
| 33 | cdef mobilesync_client_t _c_client | 33 | cdef mobilesync_client_t _c_client |
| 34 | 34 | ||
| 35 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): | 35 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): |
| 36 | cdef: | 36 | self.handle_error(mobilesync_client_new(device._c_dev, port, &(self._c_client))) |
| 37 | iDevice dev = device | ||
| 38 | mobilesync_error_t err | ||
| 39 | err = mobilesync_client_new(dev._c_dev, port, &(self._c_client)) | ||
| 40 | self.handle_error(err) | ||
| 41 | 37 | ||
| 42 | def __dealloc__(self): | 38 | def __dealloc__(self): |
| 43 | cdef mobilesync_error_t err | 39 | cdef mobilesync_error_t err |
