From cd64807a39b90f74ab4a5f6f38882eb44965bc5d Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 5 Dec 2022 20:51:18 +0800 Subject: [PATCH] remove ansi escape from output --- src/pacroller/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pacroller/utils.py b/src/pacroller/utils.py index 41e9c43..bf0acf3 100644 --- a/src/pacroller/utils.py +++ b/src/pacroller/utils.py @@ -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: