From 4b25492f2ea9716b8468864945adc50bfaf1d2e0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 15 May 2008 11:14:12 +0200 Subject: [PATCH] cleanup and provisionary Py3 fix --- Cython/Compiler/Parsing.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 803879ee..49019fcb 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -502,13 +502,8 @@ def p_name(s, name): return ExprNodes.LongNode(pos, value = rep) elif isinstance(value, float): return ExprNodes.FloatNode(pos, value = rep) - elif isinstance(value, str): - sval = Utils.EncodedString(rep[1:-1]) - sval.encoding = value.encoding - return ExprNodes.StringNode(pos, value = sval) elif isinstance(value, unicode): - sval = Utils.EncodedString(rep[2:-1]) - return ExprNodes.StringNode(pos, value = sval) + return ExprNodes.StringNode(pos, value = value) else: error(pos, "Invalid type for compile-time constant: %s" % value.__class__.__name__) -- 2.26.2