From 815ed6ff14231fd6fd2f552f67f4988e2b9e8782 Mon Sep 17 00:00:00 2001 From: Yini Xu <34967660+YiniXu9506@users.noreply.github.com> Date: Thu, 9 Sep 2021 15:06:39 +0800 Subject: [PATCH] chore: update ci scripts (#6429) --- scripts/check-file-encoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-file-encoding.py b/scripts/check-file-encoding.py index 2ad3127f249b4..b207659cfc8be 100644 --- a/scripts/check-file-encoding.py +++ b/scripts/check-file-encoding.py @@ -35,7 +35,7 @@ def check_BOM(filename): BUFSIZE = 4096 BOMLEN = len(codecs.BOM_UTF8) - with open(filename, "r+b", encoding='utf-8') as fp: + with open(filename, "r+b") as fp: chunk = fp.read(BUFSIZE) if chunk.startswith(codecs.BOM_UTF8): i = 0