Commit 8688b1e0 authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent 43bef567
......@@ -533,9 +533,7 @@ def p_name(s, name):
return ExprNodes.IntNode(pos, value = rep, longness = "L")
elif isinstance(value, float):
return ExprNodes.FloatNode(pos, value = rep)
elif isinstance(value, unicode):
return ExprNodes.StringNode(pos, value = value)
elif isinstance(value, str):
elif isinstance(value, (str, unicode)):
return ExprNodes.StringNode(pos, value = value)
else:
error(pos, "Invalid type for compile-time constant: %s"
......
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