diff options
author | Maxim Devaev <[email protected]> | 2023-03-07 23:54:05 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-03-07 23:54:05 +0200 |
commit | f652eca9c213dd783cf2ffd02109b2353ccb86c1 (patch) | |
tree | 3c2a5c68e0b03536ec5c482b9b5be708795e8292 /kvmd/plugins/msd | |
parent | 002031baf15d328dad764a620e1c83c01e7a55a6 (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins/msd')
-rw-r--r-- | kvmd/plugins/msd/otg/drive.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/plugins/msd/otg/drive.py b/kvmd/plugins/msd/otg/drive.py index 9fc947ab..e5dbdbb1 100644 --- a/kvmd/plugins/msd/otg/drive.py +++ b/kvmd/plugins/msd/otg/drive.py @@ -75,13 +75,13 @@ class Drive: # ===== def __get_param(self, param: str) -> str: - with open(os.path.join(self.__lun_path, param)) as param_file: - return param_file.read().strip() + with open(os.path.join(self.__lun_path, param)) as file: + return file.read().strip() def __set_param(self, param: str, value: str) -> None: try: - with open(os.path.join(self.__lun_path, param), "w") as param_file: - param_file.write(value + "\n") + with open(os.path.join(self.__lun_path, param), "w") as file: + file.write(value + "\n") except OSError as err: if err.errno == errno.EBUSY: raise MsdDriveLockedError() |