summaryrefslogtreecommitdiffstats
path: root/cython/mobilesync.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'cython/mobilesync.pxi')
-rw-r--r--cython/mobilesync.pxi6
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):
cdef mobilesync_client_t _c_client
def __cinit__(self, iDevice device not None, int port, *args, **kwargs):
- cdef:
- iDevice dev = device
- mobilesync_error_t err
- err = mobilesync_client_new(dev._c_dev, port, &(self._c_client))
- self.handle_error(err)
+ self.handle_error(mobilesync_client_new(device._c_dev, port, &(self._c_client)))
def __dealloc__(self):
cdef mobilesync_error_t err