support True/False in compile-time statements
authorStefan Behnel <scoder@users.berlios.de>
Sun, 10 Feb 2008 07:32:43 +0000 (08:32 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 10 Feb 2008 07:32:43 +0000 (08:32 +0100)
Cython/Compiler/ExprNodes.py

index c06d82a6eed42732347fb574ad40fc3032bd30a0..824909b994983a31357655e1d5de80c60a547e0c 100644 (file)
@@ -577,7 +577,7 @@ class BoolNode(PyConstNode):
     #  The constant value True or False
     
     def compile_time_value(self, denv):
-        return None
+        return self.value
     
     def calculate_result_code(self):
         if self.value: