From 9f9eb3bfb32202beab42619811fccd784fdc2602 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 14 Jul 2024 01:49:57 -0400 Subject: suppress flake8 warning about use of lambda --- qolab/file_utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qolab') 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: -- cgit v1.2.3