Skip to content
Snippets Groups Projects
Commit d34ec8b0 authored by Jiří Prokop's avatar Jiří Prokop
Browse files

chore: merge branch 'rkrutak/fix_ruff' into 'main'

refactor: ruff formater not passing

See merge request !76
parents 9c2c7455 e239d03d
No related branches found
No related tags found
Loading
Checking pipeline status
...@@ -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