mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-11-14 20:32:24 +08:00
remove ansi escape from output
This commit is contained in:
parent
eebd1b2bdf
commit
cd64807a39
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ def execute_with_io(command: List[str], timeout: int = 3600, interactive: bool =
|
|||
raise
|
||||
if (ret := p.wait()) != 0:
|
||||
raise subprocess.CalledProcessError(ret, command, output)
|
||||
output = ANSI_ESCAPE.sub('', output)
|
||||
return output.split('\n')
|
||||
|
||||
def pacman_time_to_timestamp(stime: str) -> int:
|
||||
|
|
Loading…
Reference in a new issue