(gen)
| 301 | |
| 302 | |
| 303 | async def to_coroutine(gen): |
| 304 | res = None |
| 305 | while 1: |
| 306 | try: |
| 307 | c = gen.send(res) |
| 308 | res = await c |
| 309 | except StopIteration as e: |
| 310 | if len(e.args) == 1: |
| 311 | return e.args[0] |
| 312 | return |
| 313 | |
| 314 | |
| 315 | class LRUDict(OrderedDict): |
searching dependent graphs…