Skip to content

Commit f46269a

Browse files
committed
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 micropython#12995. Signed-off-by: Damien George <[email protected]>
1 parent f6d6308 commit f46269a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

extmod/asyncio/stream.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ def __init__(self, s, e={}):
1313
def get_extra_info(self, v):
1414
return self.e[v]
1515

16-
async def __aenter__(self):
17-
return self
18-
19-
async def __aexit__(self, exc_type, exc, tb):
20-
await self.close()
21-
2216
def close(self):
2317
pass
2418

0 commit comments

Comments
 (0)