From d727939492cf04ea784a637065674468c7a7476f Mon Sep 17 00:00:00 2001 From: zhanglei Date: Thu, 8 Aug 2024 20:39:33 +0800 Subject: [PATCH] =?UTF-8?q?update:=20cr=E8=AF=BB=E5=8F=96patch=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=8C=87=E5=AE=9A=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metagpt/tools/libs/cr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/tools/libs/cr.py b/metagpt/tools/libs/cr.py index ea6acf654..5fca23a66 100644 --- a/metagpt/tools/libs/cr.py +++ b/metagpt/tools/libs/cr.py @@ -85,7 +85,7 @@ class CodeReview: if pre: patch_file_content = pre.text else: - async with aiofiles.open(patch_path) as f: + async with aiofiles.open(patch_path, encoding="utf-8") as f: patch_file_content = await f.read() await EditorReporter().async_report(patch_path)