Commit ce9e5444 authored by Stefan Behnel's avatar Stefan Behnel

try to use deterministic order for locals() code generation

parent b14f04b8
......@@ -7956,8 +7956,8 @@ class LocalsDictItemNode(DictItemNode):
class FuncLocalsExprNode(DictNode):
def __init__(self, pos, env):
local_vars = [entry.name for entry in env.entries.values()
if entry.name]
local_vars = sorted([
entry.name for entry in env.entries.values() if entry.name])
items = [LocalsDictItemNode(
pos, key=IdentifierStringNode(pos, value=var),
value=NameNode(pos, name=var, allow_null=True))
......
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