mirror of https://github.com/ecmwf/eccodes.git
Python function doc
This commit is contained in:
parent
22501bf7dc
commit
c32a9f15c6
|
@ -45,7 +45,7 @@ class CodesFile(file):
|
|||
self.open_messages = []
|
||||
|
||||
def __exit__(self, exception_type, exception_value, traceback):
|
||||
"""Close all open messages, release GRIB file handle and close file."""
|
||||
"""Close all open messages, release file handle and close file."""
|
||||
while self.open_messages:
|
||||
self.open_messages.pop().close()
|
||||
self.file_handle.close()
|
||||
|
|
Loading…
Reference in New Issue