mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
All scripts/tests: always specify file encoding in calls to open() (#8882)
This commit is contained in:
@@ -129,7 +129,7 @@ def match(path: Path, args: TestConfig) -> bool:
|
||||
|
||||
def parse_versions(fname: StrPath) -> dict[str, tuple[VersionTuple, VersionTuple]]:
|
||||
result = {}
|
||||
with open(fname) as f:
|
||||
with open(fname, encoding="UTF-8") as f:
|
||||
for line in f:
|
||||
line = strip_comments(line)
|
||||
if line == "":
|
||||
|
||||
Reference in New Issue
Block a user