说明
python asyncsubprocessprotocol示例是从最受好评的开源项目中提取的实现代码,你可以参考下面示例的使用方式。
编程语言: Python
命名空间/包名称: osrf_pycommonprocess_utils
示例#1文件:
io.py项目:
catkin/catkin_tools
def __init__(self, label, job_id, stage_label, event_queue, log_path, *args, **kwargs):
IOBufferContainer.__init__(self, label, job_id, stage_label, event_queue, log_path)
AsyncSubprocessProtocol.__init__(self, *args, **kwargs)
self.intermediate_stdout_buffer = b''
self.intermediate_stderr_buffer = b''
示例#2文件:
impl_aep_protocol.py项目:
jbohren-forks/osrf_pycommon
def __init__(self, *args, **kwargs):
self.stdout_buffer = b""
self.stderr_buffer = b""
AsyncSubprocessProtocol.__init__(self, *args, **kwargs)