aboutsummaryrefslogtreecommitdiff
path: root/qolab/file_utils/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/file_utils/__init__.py')
-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: