Skip to content

Commit

Permalink
Fix dictionary key deletion in Cython
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored and nikias committed Nov 26, 2023
1 parent d1d2d36 commit 960da29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cython/plist.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 960da29

Please sign in to comment.