Commit 6f1f311f authored by Stefan Behnel's avatar Stefan Behnel

avoid using unnecessarily specialised C-API function PyMapping_DelItem()

parent 2a07d9a0
...@@ -1839,7 +1839,7 @@ class NameNode(AtomicExprNode): ...@@ -1839,7 +1839,7 @@ class NameNode(AtomicExprNode):
namespace = self.entry.scope.namespace_cname namespace = self.entry.scope.namespace_cname
interned_cname = code.intern_identifier(self.entry.name) interned_cname = code.intern_identifier(self.entry.name)
code.put_error_if_neg(self.pos, code.put_error_if_neg(self.pos,
'PyMapping_DelItem(%s, %s)' % ( 'PyObject_DelItem(%s, %s)' % (
namespace, namespace,
interned_cname)) interned_cname))
elif self.entry.is_pyglobal: elif self.entry.is_pyglobal:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment