From 960da293e95883000e2d71acc8d370eb3e68ba11 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Fri, 24 Nov 2023 16:57:38 +0100 Subject: Fix dictionary key deletion in Cython --- cython/plist.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cython/plist.pyx b/cython/plist.pyx index 8029995..b5f4ef6 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx @@ -718,7 +718,7 @@ cdef class Dict(Node): def __delitem__(self, key): cpython.PyDict_DelItem(self._map, key) - plist_dict_remove_item(self._c_node, key) + plist_dict_remove_item(self._c_node, key.encode('utf-8')) cdef Dict Dict_factory(plist_t c_node, bint managed=True): cdef Dict instance = Dict.__new__(Dict) -- cgit v1.1-32-gdbae