Skip to content

Commit

Permalink
flow/actor/filter_endpoints: deterministic order
Browse files Browse the repository at this point in the history
Sebastien Bourdeauducq committed Mar 14, 2013

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent fc88319 commit 5adab17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migen/flow/actor.py
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ def token(self, ep):
return self.endpoints[ep].token

def filter_endpoints(self, cl):
return [k for k, v in self.endpoints.items() if isinstance(v, cl)]
return sorted(k for k, v in self.endpoints.items() if isinstance(v, cl))

def sinks(self):
return self.filter_endpoints(Sink)

0 comments on commit 5adab17

Please sign in to comment.