From: Stefan Behnel Date: Sun, 10 Feb 2008 07:32:43 +0000 (+0100) Subject: support True/False in compile-time statements X-Git-Tag: 0.9.6.14~29^2~37^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cb6cebbda3569b517cff0186b01a6ec7414baaa7;p=cython.git support True/False in compile-time statements --- 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: