Skip to content

Commit 5f350b7

Browse files
authored
utf-8
1 parent 1581adb commit 5f350b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _check_tool_version(self, tool_name: str) -> bool:
200200
paths = self._get_tool_paths(tool_name)
201201

202202
try:
203-
with open(paths['package_path'], 'r') as f:
203+
with open(paths['package_path'], 'r', encoding='utf-8') as f:
204204
package_data = json.load(f)
205205

206206
required_version = self.packages.get(tool_name, {}).get("package-version")
@@ -406,7 +406,7 @@ def _ensure_mklittlefs_version(self) -> None:
406406

407407
if os.path.exists(piopm_path):
408408
try:
409-
with open(piopm_path, 'r') as f:
409+
with open(piopm_path, 'r', encoding='utf-8') as f:
410410
package_data = json.load(f)
411411
if package_data.get('version') != MKLITTLEFS_VERSION_320:
412412
os.remove(piopm_path)

0 commit comments

Comments
 (0)