All scripts/tests: always specify file encoding in calls to open() (#8882)

This commit is contained in:
Samuel T
2022-10-11 17:29:36 -04:00
committed by GitHub
parent 5ca2d77f85
commit 573ee94f35
9 changed files with 18 additions and 18 deletions

View File

@@ -101,7 +101,7 @@ def get_all_testcase_directories() -> list[PackageInfo]:
@cache
def get_gitignore_spec() -> pathspec.PathSpec:
with open(".gitignore") as f:
with open(".gitignore", encoding="UTF-8") as f:
return pathspec.PathSpec.from_lines("gitwildmatch", f.readlines())