Ah I see, then import chain nicely and use
```
for sp in chain(*self.sps.values()):


2014-04-08 13:47 GMT+02:00 Devristo <notifications@github.com>:

> In Tribler/Core/Swift/SwiftProcessMgr.py:
>
> > @@ -102,12 +112,12 @@ def destroy_sp(self, sp):
> >      def clean_sps(self):
> >          # lock held
> >          deads = []
> > -        for sp in self.sps:
> > +        for sp in itertools.chain.from_iterable(self.sps.values()):
>
> That doesnt work since sps is a list of lists due to the
> halfway-implemented Swift socks5 stuff. We should either rollback all those
> changes or make it work. I think the first option is the best.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Tribler/tribler/pull/525/files#r11385986>
> .
>