From d8be12dcdd5c7609e95c246241d0ded1cf57aa2f Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 3 Apr 2022 10:54:23 +0300 Subject: [PATCH] PyLint fix --- platformio/package/commands/install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platformio/package/commands/install.py b/platformio/package/commands/install.py index ec2c86cd..3654c726 100644 --- a/platformio/package/commands/install.py +++ b/platformio/package/commands/install.py @@ -237,7 +237,9 @@ def _uninstall_project_unused_libdeps(project_env, options): storage_dir = Path(config.get("platformio", "libdeps_dir"), project_env) integrity_dat = storage_dir / "integrity.dat" if integrity_dat.is_file(): - prev_lib_deps = set(integrity_dat.read_text().strip().split("\n")) + prev_lib_deps = set( + integrity_dat.read_text(encoding="utf-8").strip().split("\n") + ) if lib_deps == prev_lib_deps: return lm = LibraryPackageManager(str(storage_dir))