Skip to content

Commit

Permalink
Add back SimTelFile.close
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Nov 2, 2021
1 parent 902f66a commit 02b8280
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eventio/simtel/simtelfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ def __enter__(self):
return self

def __exit__(self, exc_type, exc_value, traceback):
self.close()

def close(self):
self._file.close()

def tell(self):
Expand Down

0 comments on commit 02b8280

Please sign in to comment.