Skip to content
Snippets Groups Projects
Commit e239d03d authored by Rastislav Kruták's avatar Rastislav Kruták
Browse files

refactor: ruff formater not passing

parent 9c2c7455
Branches
Tags
1 merge request!76refactor: ruff formater not passing
Pipeline #557240 passed
...@@ -69,9 +69,10 @@ def main(): ...@@ -69,9 +69,10 @@ def main():
final_log_file.close() final_log_file.close()
# Zip old log file # Zip old log file
with open(full_log_absolute_name, "rb") as f_in, gzip.open( with (
full_log_absolute_name + ".gz", "wb" open(full_log_absolute_name, "rb") as f_in,
) as f_out: gzip.open(full_log_absolute_name + ".gz", "wb") as f_out,
):
shutil.copyfileobj(f_in, f_out) shutil.copyfileobj(f_in, f_out)
# Remove unzip file # Remove unzip file
......
...@@ -79,9 +79,10 @@ def main(): ...@@ -79,9 +79,10 @@ def main():
final_log_file.close() final_log_file.close()
# Zip old log file # Zip old log file
with open(full_log_absolute_name, "rb") as f_in, gzip.open( with (
full_log_absolute_name + ".gz", "wb" open(full_log_absolute_name, "rb") as f_in,
) as f_out: gzip.open(full_log_absolute_name + ".gz", "wb") as f_out,
):
shutil.copyfileobj(f_in, f_out) shutil.copyfileobj(f_in, f_out)
# Remove unzip file # Remove unzip file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment