mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
All scripts/tests: always specify file encoding in calls to open() (#8882)
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user