Tribler/dispersy — pull request #62 by boudewijn-tribler (2013-06-03 14:13:11+00:00)
Title: Changes candidate iterator behavior and adds unit tests. 

All dispersy_yield_..._candidates methods now behave the same way:
- take no arguments
- yields only Candidate instances
- stops when no more Candidates are available

Having the above behavior makes it much easier to treat them as
Candidate iterators. Normal python tools such as cycle and ifilter
can be used to obtain more candidates and exclude certain candidates
when needed.