[rtems-central commit] util: Strip only '\r' and '\n'
Sebastian Huber
sebh at rtems.org
Tue Nov 21 13:35:40 UTC 2023
Module: rtems-central
Branch: master
Commit: 7f8cc24feb1cf63a547647b925e1519da2292826
Changeset: http://git.rtems.org/rtems-central/commit/?id=7f8cc24feb1cf63a547647b925e1519da2292826
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Nov 21 11:13:15 2023 +0100
util: Strip only '\r' and '\n'
---
rtemsspec/util.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rtemsspec/util.py b/rtemsspec/util.py
index eaea0fad..1f3b1d51 100644
--- a/rtemsspec/util.py
+++ b/rtemsspec/util.py
@@ -108,7 +108,7 @@ def run_command(args: List[str],
while True:
raw_line = task.stdout.readline()
if raw_line:
- line = raw_line.decode("utf-8", "ignore").rstrip()
+ line = raw_line.decode("utf-8", "ignore").rstrip("\r\n")
if stdout is None:
logging.debug("%s", line)
else:
More information about the vc
mailing list