可以用了吧

This commit is contained in:
2024-10-21 23:40:19 +08:00
parent 84a24636f4
commit e2d484c6de
3 changed files with 7 additions and 6 deletions

View File

@@ -226,7 +226,7 @@ async def read_file_into_command_lines(
cdt = False
note = ""
functionList = []
for lines in (await read_file(file_path=file_, mode="r")).split("\n\n"): # type: ignore
for lines in (await read_file(file_path=file_, mode="r", encoding="utf-8")).split("\n\n"): # type: ignore
funcGroup = []
for line in lines.split("\n"):
if line.strip().startswith("#"):