Skip to content

Commit

Permalink
fhdl/specials/Instance: fix item sorting
Browse files Browse the repository at this point in the history
Sebastien Bourdeauducq committed Jul 26, 2013

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6e11954 commit cec8fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migen/fhdl/specials.py
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ def __init__(self, of, *items, name="", **kwargs):
else:
self.name_override = of
self.items = list(items)
for k, v in sorted(kwargs.items(), key=itemgetter(1)):
for k, v in sorted(kwargs.items(), key=itemgetter(0)):
item_type, item_name = k.split("_", maxsplit=1)
item_class = {
"i": Instance.Input,

0 comments on commit cec8fc4

Please sign in to comment.