Commit e6703967 authored by Vitja Makarov's avatar Vitja Makarov

NameNode.generate_deletion_code use cf-hints

parent 25301fc9
......@@ -1693,8 +1693,8 @@ class NameNode(AtomicExprNode):
elif self.entry.type.is_pyobject:
if not self.cf_is_null:
if self.cf_maybe_null:
code.put_xdecref(self.result(), self.ctype())
else:
code.putln('if (%s == 0) { PyErr_SetString(PyExc_UnboundLocalError, "%s"); %s }' %
(self.entry.cname, self.entry.name, code.error_goto(self.pos)))
code.put_decref(self.result(), self.ctype())
code.putln('%s = NULL;' % self.result())
else:
......
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