summaryrefslogtreecommitdiffstats
path: root/cython
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-03-22 01:39:17 +0100
committerGravatar Nikias Bassen2014-03-22 01:39:17 +0100
commit4f7d325c66dda5fc62dfac68c4231f4115d8a8dd (patch)
tree12376368cf909fef1df54a9cbd9e236df169895d /cython
parent41052423c4362030134b5ec0b0ccaeff3b81d8b4 (diff)
downloadlibplist-1.11.tar.gz
libplist-1.11.tar.bz2
cython: Make sure to use plist_dict_set_item() instead of deprecated plist_dict_insert_item()1.11
Diffstat (limited to 'cython')
-rw-r--r--cython/plist.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx
index 99b344c..4acd707 100644
--- a/cython/plist.pyx
+++ b/cython/plist.pyx
@@ -576,7 +576,7 @@ cdef plist_t create_dict_plist(object value=None):
if value is not None and isinstance(value, dict):
for key, item in value.items():
c_node = native_to_plist_t(item)
- plist_dict_insert_item(node, key, c_node)
+ plist_dict_set_item(node, key, c_node)
c_node = NULL
return node
@@ -683,7 +683,7 @@ cdef class Dict(Node):
else:
n = plist_t_to_node(native_to_plist_t(value), False)
- plist_dict_insert_item(self._c_node, key, n._c_node)
+ plist_dict_set_item(self._c_node, key, n._c_node)
self._map[key] = n
def __delitem__(self, key):