diff options
author | Simon Glass <sjg@chromium.org> | 2025-04-29 07:22:24 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2025-05-27 10:07:41 +0100 |
commit | 45f4f6219182927c34d2dc0359f4bf044d3ed432 (patch) | |
tree | 7d4eeda8054b02711996ec04b58a2670a5b41319 /tools/patman/patchwork.py | |
parent | 39f258494fd035cc7b96d904adc70a91f0bb7a7a (diff) |
patman: Switch over to asyncio
Now that all the pieces are in place, switch over from using an executor
to using asyncio.
While we are here, import defaultdict to avoid needing to specify its
module.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/patchwork.py')
-rw-r--r-- | tools/patman/patchwork.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/patman/patchwork.py b/tools/patman/patchwork.py index 8b0968c5765..2b7734bbfe4 100644 --- a/tools/patman/patchwork.py +++ b/tools/patman/patchwork.py @@ -9,6 +9,7 @@ import asyncio import re import aiohttp +from u_boot_pylib import terminal # Number of retries RETRIES = 3 @@ -188,13 +189,6 @@ class Patchwork: if i == RETRIES: raise - async def session_request(self, subpath): - async with aiohttp.ClientSession() as client: - return await self._request(client, subpath) - - def request(self, subpath): - return asyncio.run(self.session_request(subpath)) - @staticmethod def for_testing(func): """Get an instance to use for testing |