diff options
author | Dave Nicolson | 2023-11-24 16:57:38 +0100 |
---|---|---|
committer | Nikias Bassen | 2023-11-26 12:52:45 +0800 |
commit | 960da293e95883000e2d71acc8d370eb3e68ba11 (patch) | |
tree | 35df1d1df90a55a3150eb905c8ec576819750abb /cython/plist.pyx | |
parent | d1d2d36791a7674bae7286c003a82e36ece008ab (diff) | |
download | libplist-960da293e95883000e2d71acc8d370eb3e68ba11.tar.gz libplist-960da293e95883000e2d71acc8d370eb3e68ba11.tar.bz2 |
Fix dictionary key deletion in Cython
Diffstat (limited to 'cython/plist.pyx')
-rw-r--r-- | cython/plist.pyx | 2 |
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) |