From 2df92ae6201e34038abcd62496df3b0f624d662d Mon Sep 17 00:00:00 2001 From: David Livingston Date: Thu, 4 Dec 2025 17:11:30 +0800 Subject: [PATCH] Replace Chinese comment with English in nullcontext method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docstring "异步空上下文管理器" has been replaced with "Async null context manager that yields nothing." in both the source file and the documentation. --- crawl4ai/async_webcrawler.py | 2 +- deploy/docker/c4ai-code-context.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crawl4ai/async_webcrawler.py b/crawl4ai/async_webcrawler.py index 1b571b50a..87ceaf736 100644 --- a/crawl4ai/async_webcrawler.py +++ b/crawl4ai/async_webcrawler.py @@ -198,7 +198,7 @@ async def __aexit__(self, exc_type, exc_val, exc_tb): @asynccontextmanager async def nullcontext(self): - """异步空上下文管理器""" + """Async null context manager that yields nothing.""" yield async def arun( diff --git a/deploy/docker/c4ai-code-context.md b/deploy/docker/c4ai-code-context.md index c18fbc784..8abc68874 100644 --- a/deploy/docker/c4ai-code-context.md +++ b/deploy/docker/c4ai-code-context.md @@ -1548,7 +1548,7 @@ class AsyncWebCrawler: @asynccontextmanager async def nullcontext(self): - """异步空上下文管理器""" + """Async null context manager that yields nothing.""" yield async def arun(