mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
Meta: Open files with explicit encoding in check-style.py
This commit is contained in:
parent
adfb371e4f
commit
c7fe7b09a5
|
|
@ -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…
Reference in New Issue
Block a user