From f46269a1d16a5d0890bbc97d1141af7173050013 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 20 Dec 2023 15:54:05 +1100 Subject: [PATCH] extmod/asyncio: Remove non-working Stream __aenter__/__aexit__ methods. It looks like these never worked and there are no tests for this functionality. Furthermore, CPython doesn't support this. Fixes #12995. Signed-off-by: Damien George --- extmod/asyncio/stream.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/extmod/asyncio/stream.py b/extmod/asyncio/stream.py index bcc2a13a86..cb0a804b5e 100644 --- a/extmod/asyncio/stream.py +++ b/extmod/asyncio/stream.py @@ -13,12 +13,6 @@ class Stream: def get_extra_info(self, v): return self.e[v] - async def __aenter__(self): - return self - - async def __aexit__(self, exc_type, exc, tb): - await self.close() - def close(self): pass