diff options
author | Damien George <damien@micropython.org> | 2023-12-20 15:54:05 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-12-20 15:56:23 +1100 |
commit | f46269a1d16a5d0890bbc97d1141af7173050013 (patch) | |
tree | c7ed67b6dc198374121a491e60a7c9f28838174a /extmod/asyncio/stream.py | |
parent | f6d630877c3b31a5091dff2fd615ddb92189a46c (diff) |
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 <damien@micropython.org>
Diffstat (limited to 'extmod/asyncio/stream.py')
-rw-r--r-- | extmod/asyncio/stream.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/extmod/asyncio/stream.py b/extmod/asyncio/stream.py index bcc2a13a8..cb0a804b5 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 |