From f652eca9c213dd783cf2ffd02109b2353ccb86c1 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Tue, 7 Mar 2023 23:54:05 +0200 Subject: refactoring --- kvmd/apps/otg/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kvmd/apps/otg') 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: -- cgit v1.2.3