Browse files

flow/actor/filter_endpoints: deterministic order

  • Loading branch information...
1 parent fc88319 commit 5adab17efa28ac4329a22d10c3644c33cc69b1d0 @sbourdeauducq sbourdeauducq committed Mar 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 migen/flow/actor.py
View
2 migen/flow/actor.py
@@ -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.