Helper decorator to rewrite a function so that it returns another function from it.
(f)
| 40 | |
| 41 | |
| 42 | def processor(f): |
| 43 | """Helper decorator to rewrite a function so that it returns another |
| 44 | function from it. |
| 45 | """ |
| 46 | |
| 47 | def new_func(*args, **kwargs): |
| 48 | def processor(stream): |
| 49 | return f(stream, *args, **kwargs) |
| 50 | |
| 51 | return processor |
| 52 | |
| 53 | return update_wrapper(new_func, f) |
| 54 | |
| 55 | |
| 56 | def generator(f): |
no test coverage detected
searching dependent graphs…