未验证 提交 73184e35 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'ldoktor/revert-process-stdin'

Signed-off-by: NCleber Rosa <crosa@redhat.com>
......@@ -531,7 +531,6 @@ class SubProcess(object):
else:
stderr = subprocess.PIPE
self._popen = subprocess.Popen(cmd,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=stderr,
shell=self.shell,
......@@ -702,16 +701,6 @@ class SubProcess(object):
self._fill_results(rc)
return rc
def stdin_write(self, value, flush=False):
"""
Call the subprocess stdin.write() method for any input to subprocess
Optionally flush the input buffer
"""
self._init_subprocess()
self._popen.stdin.write(value)
if flush:
self._popen.stdin.flush()
def stop(self):
"""
Stop background subprocess.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册