Skip to content

Commit 0c32664

Browse files
committed
Remove unused __enter__ and __exit__ for raw fileio
1 parent c257aee commit 0c32664

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/isal/igzip_threaded.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ def close(self) -> None:
108108
self.worker.join()
109109
self.fileobj.close()
110110

111-
def __enter__(self):
112-
return self
113-
114-
def __exit__(self, exc_type, exc_val, exc_tb):
115-
self.close()
116-
117111

118112
class ThreadedGzipWriter(io.RawIOBase):
119113
"""
@@ -298,9 +292,3 @@ def _write(self):
298292

299293
def writable(self) -> bool:
300294
return True
301-
302-
def __enter__(self):
303-
return self
304-
305-
def __exit__(self, exc_type, exc_val, exc_tb):
306-
self.close()

0 commit comments

Comments
 (0)