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/apps/otg | |
parent | 002031baf15d328dad764a620e1c83c01e7a55a6 (diff) |
refactoring
Diffstat (limited to 'kvmd/apps/otg')
-rw-r--r-- | kvmd/apps/otg/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/apps/otg/__init__.py b/kvmd/apps/otg/__init__.py index 560d84bb..bb24a199 100644 --- a/kvmd/apps/otg/__init__.py +++ b/kvmd/apps/otg/__init__.py @@ -80,14 +80,14 @@ def _write(path: str, value: (str | int), optional: bool=False) -> None: logger.info("WRITE --- [SKIPPED] %s", path) return logger.info("WRITE --- %s", path) - with open(path, "w") as param_file: - param_file.write(str(value)) + with open(path, "w") as file: + file.write(str(value)) def _write_bytes(path: str, data: bytes) -> None: get_logger().info("WRITE --- %s", path) - with open(path, "wb") as param_file: - param_file.write(data) + with open(path, "wb") as file: + file.write(data) def _check_config(config: Section) -> None: |