Skip to content

Commit

Permalink
chore: update ci scripts (#6429)
Browse files Browse the repository at this point in the history
  • Loading branch information
YiniXu9506 authored Sep 9, 2021
1 parent c666f05 commit 815ed6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-file-encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 815ed6f

Please sign in to comment.