From 4f7d325c66dda5fc62dfac68c4231f4115d8a8dd Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 22 Mar 2014 01:39:17 +0100 Subject: cython: Make sure to use plist_dict_set_item() instead of deprecated plist_dict_insert_item() --- cython/plist.pyx | 4 ++-- 1 file 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): -- cgit v1.1-32-gdbae