Skip to content

Commit f7aaf1b

Browse files
accept inputs without emptyline at the end
1 parent e76e463 commit f7aaf1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklbench/utils/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def read_output_from_command(command: str) -> Tuple[int, str, str]:
6666
stderr=sp.PIPE,
6767
encoding="utf-8",
6868
)
69-
return res.returncode, res.stdout[:-1], res.stderr[:-1]
69+
return res.returncode, res.stdout.strip(), res.stderr.strip()
7070

7171

7272
def hash_from_json_repr(x: JsonTypesUnion, hash_limit: int = 5) -> str:

0 commit comments

Comments
 (0)