[voltLib] use OrderedDict for mapping
This commit is contained in:
parent
31a1aa8c7a
commit
76d8084d77
@ -302,7 +302,7 @@ class Parser(object):
|
|||||||
raise VoltLibError(
|
raise VoltLibError(
|
||||||
"Invalid substitution type",
|
"Invalid substitution type",
|
||||||
location)
|
location)
|
||||||
mapping = dict(zip(tuple(src), tuple(dest)))
|
mapping = OrderedDict(zip(tuple(src), tuple(dest)))
|
||||||
if max_src == 1 and max_dest == 1:
|
if max_src == 1 and max_dest == 1:
|
||||||
if reversal:
|
if reversal:
|
||||||
sub = ast.SubstitutionReverseChainingSingleDefinition(
|
sub = ast.SubstitutionReverseChainingSingleDefinition(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user