Commit 53457e15 authored by Stefan Behnel's avatar Stefan Behnel

avoid recoding variable names for cyfunction.func_code.varnames, just do as locals() does

parent e1a4ad15
......@@ -5273,8 +5273,7 @@ class CodeObjectNode(ExprNode):
if arg.name ]
self.varnames = TupleNode(
def_node.pos,
args = [ IdentifierStringNode(arg.pos, unicode_value=arg.name,
value=StringEncoding.BytesLiteral(arg.name.utf8encode()))
args = [ IdentifierStringNode(arg.pos, value=arg.name)
for arg in args + local_vars ],
is_temp = 0,
is_literal = 1)
......
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