File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ def _check_tool_version(self, tool_name: str) -> bool:
200
200
paths = self ._get_tool_paths (tool_name )
201
201
202
202
try :
203
- with open (paths ['package_path' ], 'r' ) as f :
203
+ with open (paths ['package_path' ], 'r' , encoding = 'utf-8' ) as f :
204
204
package_data = json .load (f )
205
205
206
206
required_version = self .packages .get (tool_name , {}).get ("package-version" )
@@ -406,7 +406,7 @@ def _ensure_mklittlefs_version(self) -> None:
406
406
407
407
if os .path .exists (piopm_path ):
408
408
try :
409
- with open (piopm_path , 'r' ) as f :
409
+ with open (piopm_path , 'r' , encoding = 'utf-8' ) as f :
410
410
package_data = json .load (f )
411
411
if package_data .get ('version' ) != MKLITTLEFS_VERSION_320 :
412
412
os .remove (piopm_path )
You can’t perform that action at this time.
0 commit comments