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/htpasswd/__init__.py | |
parent | 002031baf15d328dad764a620e1c83c01e7a55a6 (diff) |
refactoring
Diffstat (limited to 'kvmd/apps/htpasswd/__init__.py')
-rw-r--r-- | kvmd/apps/htpasswd/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/htpasswd/__init__.py b/kvmd/apps/htpasswd/__init__.py index dd1213f7..b3862965 100644 --- a/kvmd/apps/htpasswd/__init__.py +++ b/kvmd/apps/htpasswd/__init__.py @@ -59,8 +59,8 @@ def _get_htpasswd_for_write(config: Section) -> Generator[passlib.apache.Htpassw try: try: st = os.stat(path) - with open(path, "rb") as htpasswd_file: - os.write(tmp_fd, htpasswd_file.read()) + with open(path, "rb") as file: + os.write(tmp_fd, file.read()) os.fchown(tmp_fd, st.st_uid, st.st_gid) os.fchmod(tmp_fd, st.st_mode) finally: |