Commit 6f790c8f authored by Stefan Behnel's avatar Stefan Behnel

Py3.1 fix

parent 8d73ea74
...@@ -1950,6 +1950,8 @@ def p_opt_cname(s): ...@@ -1950,6 +1950,8 @@ def p_opt_cname(s):
literal = p_opt_string_literal(s) literal = p_opt_string_literal(s)
if literal: if literal:
_, cname = literal _, cname = literal
cname = EncodedString(cname)
cname.encoding = s.source_encoding
else: else:
cname = None cname = None
return cname return cname
......
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