From 87026b93cf1ee8c965c8ef0ce8c6970b3f782f6b Mon Sep 17 00:00:00 2001 From: "Edward S. Rice" Date: Fri, 13 Sep 2024 18:28:18 +0200 Subject: [PATCH] Remove enter/exit from Writer not necessary because they will be inherited --- cyvcf2/cyvcf2.pyx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cyvcf2/cyvcf2.pyx b/cyvcf2/cyvcf2.pyx index 6229d87..32e6f83 100644 --- a/cyvcf2/cyvcf2.pyx +++ b/cyvcf2/cyvcf2.pyx @@ -2420,12 +2420,6 @@ cdef class Writer(VCF): bcf_hdr_sync(self.hdr) self.header_written = False - def __enter__(self): - return self - - def __exit__(self, type, value, tb): - self.close() - @staticmethod def _infer_file_mode(fname, mode=None): if mode is not None: