aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qolab/file_utils/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/qolab/file_utils/__init__.py b/qolab/file_utils/__init__.py
index ee66d4c..1ce8a17 100644
--- a/qolab/file_utils/__init__.py
+++ b/qolab/file_utils/__init__.py
@@ -174,12 +174,12 @@ def save_table_with_header(
)
with _open(fname, mode="ab") as f:
if not (file_exist_flag and skip_headers_if_file_exist):
- for l in header:
- f.write(f"{comment_symbol} {l}\n".encode("utf-8"))
+ for line in header:
+ f.write(f"{comment_symbol} {line}\n".encode("utf-8"))
if data is not None:
for r in data:
- l = item_separator.join(map(item_format.format, r))
- f.write(l.encode("utf-8"))
+ line = item_separator.join(map(item_format.format, r))
+ f.write(line.encode("utf-8"))
f.write("\n".encode("utf-8"))
f.close()
return fname