diff options
| author | 2010-04-29 13:59:21 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:55 +0100 | |
| commit | 74943414c8e04a92f42dcbc4fac1599c7f9deed2 (patch) | |
| tree | 05d0dfd67989a0f7f850aedd797c41a7dd575ee8 | |
| parent | 49fc86155ca2ec847239f7969ac190dfe7aa4920 (diff) | |
| download | libimobiledevice-74943414c8e04a92f42dcbc4fac1599c7f9deed2.tar.gz libimobiledevice-74943414c8e04a92f42dcbc4fac1599c7f9deed2.tar.bz2 | |
Used issubclass to determine if a class object can be passed.
| -rw-r--r-- | cython/lockdown.pxi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cython/lockdown.pxi b/cython/lockdown.pxi index f8955e5..be9d25f 100644 --- a/cython/lockdown.pxi +++ b/cython/lockdown.pxi | |||
| @@ -164,7 +164,7 @@ cdef class LockdownClient(PropertyListService): | |||
| 164 | char* c_service_name = NULL | 164 | char* c_service_name = NULL |
| 165 | uint16_t port = 0 | 165 | uint16_t port = 0 |
| 166 | 166 | ||
| 167 | if hasattr(service, '__service_name__') and \ | 167 | if issubclass(service, BaseService) and \ |
| 168 | service.__service_name__ is not None \ | 168 | service.__service_name__ is not None \ |
| 169 | and isinstance(service.__service_name__, basestring): | 169 | and isinstance(service.__service_name__, basestring): |
| 170 | c_service_name = <bytes>service.__service_name__ | 170 | c_service_name = <bytes>service.__service_name__ |
