From cb6cebbda3569b517cff0186b01a6ec7414baaa7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 10 Feb 2008 08:32:43 +0100 Subject: [PATCH] support True/False in compile-time statements --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index c06d82a6..824909b9 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -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: -- 2.26.2