mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
Meta: Open files with explicit encoding in check-style.py
This commit is contained in:
parent
adfb371e4f
commit
c7fe7b09a5
Notes:
github-actions[bot]
2025-02-06 00:36:12 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/c7fe7b09a5a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3474 Reviewed-by: https://github.com/tcl3
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ def run():
|
|||
errors_single_page_html_spec = []
|
||||
|
||||
for filename in find_files_here_or_argv():
|
||||
with open(filename, "r") as f:
|
||||
with open(filename, mode="r", encoding='utf-8') as f:
|
||||
file_content = f.read()
|
||||
if not is_in_prefix_list(filename, LICENSE_HEADER_CHECK_EXCLUDES):
|
||||
if not GOOD_LICENSE_HEADER_PATTERN.search(file_content):
|
||||
|
|
Loading…
Add table
Reference in a new issue