summaryrefslogtreecommitdiffstats
path: root/cython/plist.pyx
diff options
context:
space:
mode:
authorGravatar Dave Nicolson2023-11-24 16:57:38 +0100
committerGravatar Nikias Bassen2023-11-26 12:52:45 +0800
commit960da293e95883000e2d71acc8d370eb3e68ba11 (patch)
tree35df1d1df90a55a3150eb905c8ec576819750abb /cython/plist.pyx
parentd1d2d36791a7674bae7286c003a82e36ece008ab (diff)
downloadlibplist-960da293e95883000e2d71acc8d370eb3e68ba11.tar.gz
libplist-960da293e95883000e2d71acc8d370eb3e68ba11.tar.bz2
Fix dictionary key deletion in Cython
Diffstat (limited to 'cython/plist.pyx')
-rw-r--r--cython/plist.pyx2
1 files changed, 1 insertions, 1 deletions
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)