Take an iterable of callbacks, return a list of each callback.
(cbs)
| 84 | |
| 85 | |
| 86 | def unpack_callbacks(cbs): |
| 87 | """Take an iterable of callbacks, return a list of each callback.""" |
| 88 | if cbs: |
| 89 | return [[i for i in f if i] for f in zip(*cbs)] |
| 90 | else: |
| 91 | return [(), (), (), (), ()] |
| 92 | |
| 93 | |
| 94 | @contextmanager |
no outgoing calls
no test coverage detected
searching dependent graphs…