Skip to content

Commit e0baa9b

Browse files
committed
missing strip()
1 parent 284d498 commit e0baa9b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

sources/boot_service/systemd/systemd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ def status(self) -> int:
4040
if exec.returncode == 4:
4141
logging.error("The systemd boot service does not exists.")
4242
else:
43-
print(exec.stdout)
43+
print(exec.stdout.strip())
4444

4545
return exec.returncode

sources/globals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def get_index(device: str) -> str:
9393
"udevadm info -a %s | grep -m 1 -oP 'ATTR{index}==\\K.*'" % (device),
9494
shell=True,
9595
text=True,
96-
)
96+
).strip()
9797

9898

9999
def get_kernels(device: str) -> str:
@@ -109,4 +109,4 @@ def get_kernels(device: str) -> str:
109109
"udevadm info -a %s | grep -m 1 -oP 'KERNELS==\\K.*'" % (device),
110110
shell=True,
111111
text=True,
112-
)
112+
).strip()

sources/linux-enable-ir-emitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
shell=True,
9898
capture_output=True,
9999
text=True,
100-
).stdout
100+
).stdout.strip()
101101
if len(v4l_device) == 0:
102102
logging.critical(
103103
f"The device {device} does not exists or is not a supported v4l camera."

0 commit comments

Comments
 (0)