Commit 2b4aa4cc authored by Stefan Behnel's avatar Stefan Behnel

fix stupid crash

parent 8e31c2d5
......@@ -6136,7 +6136,7 @@ class CoerceToBooleanNode(CoercionNode):
return
test_func = self._special_builtins.get(self.arg.type)
if test_func is not None:
code.putln("%s = (%s != Py_None) & (%s(%s) != 0);" % (
code.putln("%s = (%s != Py_None) && (%s(%s) != 0);" % (
self.result(),
self.arg.py_result(),
test_func,
......
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