Skip to content

Commit

Permalink
Remove enter/exit from Writer
Browse files Browse the repository at this point in the history
not necessary because they will be inherited
  • Loading branch information
esrice authored Sep 13, 2024
1 parent dad1596 commit 87026b9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cyvcf2/cyvcf2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 87026b9

Please sign in to comment.