From 97688ffae13892bd52e307fe39e16f77a6c86c70 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 28 Jul 2024 20:30:28 -0700 Subject: [PATCH] don't want to use context manager here --- masque/file/gdsii.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/file/gdsii.py b/masque/file/gdsii.py index b75c854..11e1574 100644 --- a/masque/file/gdsii.py +++ b/masque/file/gdsii.py @@ -599,10 +599,10 @@ def load_libraryfile( if is_gzipped(path): if use_mmap: logger.info('Asked to mmap a gzipped file, reading into memory instead...') - gz_stream = gzip.open(path, mode='rb') + gz_stream = gzip.open(path, mode='rb') # noqa: SIM115 stream = io.BytesIO(gz_stream.read()) # type: ignore else: - gz_stream = gzip.open(path, mode='rb') + gz_stream = gzip.open(path, mode='rb') # noqa: SIM115 stream = io.BufferedReader(gz_stream) # type: ignore else: # noqa: PLR5501 if use_mmap: