diff options
author | Bryan Forbes | 2010-03-31 15:01:50 -0500 |
---|---|---|
committer | Martin Szulecki | 2012-03-20 23:25:55 +0100 |
commit | af06ff22149191c056804e7fec9c1a6880a06872 (patch) | |
tree | 3aaa11e5912630d097d7e2a8243fc0de75f6d38f /cython/imobiledevice.pyx | |
parent | 23954a2b28e6f763a83524a85ead4716620ee7cc (diff) | |
download | libimobiledevice-af06ff22149191c056804e7fec9c1a6880a06872.tar.gz libimobiledevice-af06ff22149191c056804e7fec9c1a6880a06872.tar.bz2 |
Fixed some class names and inheritance chains.
Diffstat (limited to 'cython/imobiledevice.pyx')
-rw-r--r-- | cython/imobiledevice.pyx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cython/imobiledevice.pyx b/cython/imobiledevice.pyx index b7ec87b..dc0fb88 100644 --- a/cython/imobiledevice.pyx +++ b/cython/imobiledevice.pyx @@ -70,10 +70,12 @@ cdef class iDeviceError(BaseError): cpdef set_debug_level(int level): idevice_set_debug_level(level) -cdef class iDeviceEvent: pass +cdef class iDeviceEvent: + def __init__(self, *args, **kwargs): + raise TypeError("iDeviceEvent cannot be instantiated") cdef void idevice_event_cb(const_idevice_event_t c_event, void *user_data): - cdef iDeviceEvent event = iDeviceEvent() + cdef iDeviceEvent event = iDeviceEvent.__new__(iDeviceEvent) event._c_event = c_event (<object>user_data)(event) |