From c28f821c9067050ba0d099349a4dfea2b29faf99 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 2 Nov 2024 18:42:54 -0700 Subject: [PATCH] Fixed broken link in django/core/handlers/asgi.py comment. --- django/core/handlers/asgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/handlers/asgi.py b/django/core/handlers/asgi.py index bb6a6bfb3c..b57bec90d0 100644 --- a/django/core/handlers/asgi.py +++ b/django/core/handlers/asgi.py @@ -326,8 +326,8 @@ class ASGIHandler(base.BaseHandler): if response.streaming: # - Consume via `__aiter__` and not `streaming_content` directly, to # allow mapping of a sync iterator. - # - Use aclosing() when consuming aiter. - # See https://github.com/python/cpython/commit/6e8dcda + # - Use aclosing() when consuming aiter. See + # https://github.com/python/cpython/commit/6e8dcdaaa49d4313bf9fab9f9923ca5828fbb10e async with aclosing(aiter(response)) as content: async for part in content: for chunk, _ in self.chunk_bytes(part):