Commit cb6cebbd authored by Stefan Behnel's avatar Stefan Behnel

support True/False in compile-time statements

parent ddb64728
...@@ -577,7 +577,7 @@ class BoolNode(PyConstNode): ...@@ -577,7 +577,7 @@ class BoolNode(PyConstNode):
# The constant value True or False # The constant value True or False
def compile_time_value(self, denv): def compile_time_value(self, denv):
return None return self.value
def calculate_result_code(self): def calculate_result_code(self):
if self.value: if 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