Commit 83991ecb authored by Stefan Behnel's avatar Stefan Behnel

fix NoneCheckNode by disabling 'nonecheck' directive testing

parent b9575a2f
......@@ -7500,7 +7500,9 @@ class NoneCheckNode(CoercionNode):
return self.arg.result()
def generate_result_code(self, code):
if not code.globalstate.directives['nonecheck']:
if False and not code.globalstate.directives['nonecheck']:
# disabled - None checks are often required for safety
# and nonecheck is disabled by default - WTF!
return
code.putln(
"if (unlikely(%s == Py_None)) {" % self.arg.result())
......
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