(self, arg: str, input: str = None, check=False)
| 17 | return subprocess.check_output(shlex.split(arg), stderr=subprocess.STDOUT).decode('utf-8') |
| 18 | |
| 19 | def run(self, arg: str, input: str = None, check=False) -> str: |
| 20 | if input: |
| 21 | input = input.encode('utf-8') |
| 22 | return subprocess.run(shlex.split(arg), input=input, stdout=subprocess.PIPE, |
| 23 | check=check, stderr=subprocess.STDOUT).stdout.decode('utf-8') |
| 24 | |
| 25 | |
| 26 | class _Protocol(asyncio.SubprocessProtocol): |
no test coverage detected