Skip to content

Commit

Permalink
flow/actor/filter_endpoints: deterministic order
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Mar 14, 2013
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
Expand Up @@ -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)
Expand Down

0 comments on commit 5adab17

Please sign in to comment.