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