Skip to content

Commit

Permalink
Meta: Open files with explicit encoding in check-style.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ADKaster committed Feb 6, 2025
1 parent 4ac16c4 commit cd71759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meta/check-style.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit cd71759

Please sign in to comment.