def __init__(self, library_import=False): if library_import: LOGGER.enable_library_import_logging() self._library_import = library_import self._python_out = _PythonCapturer(stdout=True) self._python_err = _PythonCapturer(stdout=False) self._java_out = _JavaCapturer(stdout=True) self._java_err = _JavaCapturer(stdout=False)
def __enter__(self): if self._library_import: LOGGER.enable_library_import_logging() return self
def __enter__(self): if self._library_import: LOGGER.enable_library_import_logging() return self