Skip to content

Replace Chinese comment with English in nullcontext method#1655

Closed
daviddl9 wants to merge 1 commit intounclecode:mainfrom
daviddl9:fix/replace-chinese-comment-with-english
Closed

Replace Chinese comment with English in nullcontext method#1655
daviddl9 wants to merge 1 commit intounclecode:mainfrom
daviddl9:fix/replace-chinese-comment-with-english

Conversation

@daviddl9
Copy link

@daviddl9 daviddl9 commented Dec 4, 2025

Summary

  • Replaced Chinese docstring 异步空上下文管理器 with English Async null context manager that yields nothing.
  • Updated both the source file (crawl4ai/async_webcrawler.py) and the documentation (deploy/docker/c4ai-code-context.md)

Details

The nullcontext method in AsyncWebCrawler had a Chinese comment that should be in English for consistency with the rest of the codebase.

Test plan

  • Verified no other Chinese comments exist in source code (test files with Chinese test data were intentionally left unchanged)
  • Linting passes
  • Tests pass

The docstring "异步空上下文管理器" has been replaced with
"Async null context manager that yields nothing." in both the
source file and the documentation.
@unclecode
Copy link
Owner

Thanks for the suggestion, @daviddl9! We're keeping this one as-is — it's a small memento from one of our early contributors. Closing, but appreciate you thinking about code consistency.

@daviddl9 daviddl9 closed this Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants