From c714c5d8729a0e09f01792c19110e328868128df Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Oct 2009 11:57:34 +0200 Subject: [PATCH] support StringNode in compile time expressions --- Cython/Compiler/ExprNodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index cff1904a..4c12f1cb 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -880,6 +880,9 @@ class StringNode(PyConstNode): def calculate_result_code(self): return self.result_code + + def compile_time_value(self, env): + return self.value class LongNode(AtomicExprNode): -- 2.26.2