MCPcopy Index your code
hub / github.com/mne-tools/mne-python / ClosingStringIO

Class ClosingStringIO

mne/utils/_logging.py:300–308  ·  view source on GitHub ↗

StringIO that closes after getvalue().

Source from the content-addressed store, hash-verified

298
299
300class ClosingStringIO(StringIO):
301 """StringIO that closes after getvalue()."""
302
303 def getvalue(self, close=True):
304 """Get the value."""
305 out = super().getvalue()
306 if close:
307 self.close()
308 return out
309
310
311class catch_logging:

Callers 8

test_sys_info_basicFunction · 0.90
test_sys_info_completeFunction · 0.90
test_sys_info_qt_browserFunction · 0.90
__init__Method · 0.85
__enter__Method · 0.85
wrapped_stdoutFunction · 0.85

Calls

no outgoing calls

Tested by 6

test_sys_info_basicFunction · 0.72
test_sys_info_completeFunction · 0.72
test_sys_info_qt_browserFunction · 0.72
__init__Method · 0.68