File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
9999def 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 ()
Original file line number Diff line number Diff line change 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."
You can’t perform that action at this time.
0 commit comments