Commit 382b5f09 authored by Stefan Behnel's avatar Stefan Behnel

Minor code cleanup.

parent 38977a4f
...@@ -1202,7 +1202,7 @@ class BoolNode(ConstNode): ...@@ -1202,7 +1202,7 @@ class BoolNode(ConstNode):
def calculate_result_code(self): def calculate_result_code(self):
if self.type.is_pyobject: if self.type.is_pyobject:
return self.value and 'Py_True' or 'Py_False' return 'Py_True' if self.value else 'Py_False'
else: else:
return str(int(self.value)) return str(int(self.value))
......
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