Commit c58a24bb authored by scoder's avatar scoder

Merge pull request #199 from nnemkin/compile_time_strings_fix

Correctly handle compile-time strings appearing in Python context.
parents b2cb180f d832914e
......@@ -708,9 +708,9 @@ def wrap_compile_time_constant(pos, value):
elif isinstance(value, float):
return ExprNodes.FloatNode(pos, value=rep)
elif isinstance(value, _unicode):
return ExprNodes.UnicodeNode(pos, value=value)
return ExprNodes.UnicodeNode(pos, value=EncodedString(value))
elif isinstance(value, _bytes):
return ExprNodes.BytesNode(pos, value=value)
return ExprNodes.BytesNode(pos, value=BytesLiteral(value))
elif isinstance(value, tuple):
args = [wrap_compile_time_constant(pos, arg)
for arg in value]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment