aboutsummaryrefslogtreecommitdiff
path: root/qolab/file_utils/__init__.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 01:53:48 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 01:53:48 -0400
commitca236ed0a7440c2c4336e93b62058c8a07a0f06a (patch)
tree45213da8b0abdcba9fd4779617ea981d8d162f10 /qolab/file_utils/__init__.py
parent9f9eb3bfb32202beab42619811fccd784fdc2602 (diff)
downloadqolab-ca236ed0a7440c2c4336e93b62058c8a07a0f06a.tar.gz
qolab-ca236ed0a7440c2c4336e93b62058c8a07a0f06a.zip
disambigue l -> line
Diffstat (limited to 'qolab/file_utils/__init__.py')
-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