mirror of
https://github.com/libimobiledevice/libplist.git
synced 2026-05-17 20:30:34 +00:00
Fix Cython crashes
This commit is contained in:
+4
-1
@@ -789,7 +789,10 @@ cdef class Array(Node):
|
||||
return self._array.__iter__()
|
||||
|
||||
def __getitem__(self, index):
|
||||
return self._array[index]
|
||||
value = self._array[index]
|
||||
if isinstance(value, list):
|
||||
return [item.copy() for item in value]
|
||||
return value.copy()
|
||||
|
||||
def __setitem__(self, index, value):
|
||||
cdef Node n
|
||||
|
||||
Reference in New Issue
Block a user