mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
86fabcd5e3
+ merge main.py and manage.py + move start logic to swingmusic/__main__.py + add a run.py on the project root
12 lines
217 B
Python
12 lines
217 B
Python
def coroutine(func):
|
|
"""
|
|
Decorator: primes `func` by advancing to first `yield`
|
|
"""
|
|
|
|
def start(*args, **kwargs):
|
|
cr = func(*args, **kwargs)
|
|
next(cr)
|
|
return cr
|
|
|
|
return start
|