- commit
- 2547d6478029e39eab25ea84aa299ccd7ee97552
- parent
- 12222b9d2dab2e0c430350d779a8c5c0ffc6e6d2
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-08-24 06:56
update syncio code
Diffstat
| M | project_stats.py | 5 | ++--- |
1 files changed, 2 insertions, 3 deletions
diff --git a/project_stats.py b/project_stats.py
@@ -51,9 +51,8 @@ def aiorun(future): 51 51 """Return value of a future synchronously.""" 52 52 container = [] 53 5354 -1 @asyncio.coroutine55 -1 def wrapper():56 -1 result = yield from future-1 54 async def wrapper(): -1 55 result = await future 57 56 container.append(result) 58 57 59 58 loop = asyncio.get_event_loop()