diff --git a/trio/_abc.py b/trio/_abc.py index da381b2ed2..b9868e455a 100644 --- a/trio/_abc.py +++ b/trio/_abc.py @@ -413,6 +413,7 @@ async def receive_some(self, max_bytes=None): """ + @aiter_compat def __aiter__(self): return self diff --git a/trio/_ssl.py b/trio/_ssl.py index 16d9623243..d0e63d92f1 100644 --- a/trio/_ssl.py +++ b/trio/_ssl.py @@ -307,7 +307,7 @@ def __init__( server_hostname=None, server_side=False, https_compatible=False, - max_refill_bytes="unused and deprecated", + max_refill_bytes="unused and deprecated" ): self.transport_stream = transport_stream self._state = _State.OK @@ -850,7 +850,7 @@ def __init__( ssl_context, *, https_compatible=False, - max_refill_bytes="unused and deprecated", + max_refill_bytes="unused and deprecated" ): if max_refill_bytes != "unused and deprecated": warn_deprecated(