aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 01:49:57 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 01:49:57 -0400
commit9f9eb3bfb32202beab42619811fccd784fdc2602 (patch)
treee5f0a8fa794fa84c50d6eb1e0e7ce8b36724d884
parent583589d3702ca2b392605cb2af9755cc93b6cb74 (diff)
downloadqolab-9f9eb3bfb32202beab42619811fccd784fdc2602.tar.gz
qolab-9f9eb3bfb32202beab42619811fccd784fdc2602.zip
suppress flake8 warning about use of lambda
-rw-r--r--qolab/file_utils/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qolab/file_utils/__init__.py b/qolab/file_utils/__init__.py
index 289ffec..ee66d4c 100644
--- a/qolab/file_utils/__init__.py
+++ b/qolab/file_utils/__init__.py
@@ -163,13 +163,13 @@ def save_table_with_header(
if compressionmethod == "gzip":
import gzip
- _open = lambda fname, mode: gzip.open(
+ _open = lambda fname, mode: gzip.open( # noqa: E731
fname, mode=mode, compresslevel=compresslevel
)
if compressionmethod == "bzip":
import bz2
- _open = lambda fname, mode: bz2.open(
+ _open = lambda fname, mode: bz2.open( # noqa: E731
fname, mode=mode, compresslevel=compresslevel
)
with _open(fname, mode="ab") as f: