Skip to content

Commit 04b0f4b

Browse files
committed
simplify print command
1 parent 35bcf1d commit 04b0f4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/python_testing/TC_DeviceBasicComposition.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,10 @@ def test_TC_IDM_12_1(self):
779779

780780
# Structured dump so we can pull these back out of the logs
781781
def log_structured_data(start_tag: str, dump_string):
782-
lines = dump_string.splitlines(keepends=True)
782+
lines = dump_string.splitlines()
783783
logging.info(f'{start_tag}BEGIN ({len(lines)} lines)====')
784-
logging.info(f'{start_tag}{start_tag.join(lines)}')
784+
for line in lines:
785+
logging.info(f'{start_tag}{line}')
785786
logging.info(f'{start_tag}END ====')
786787

787788
log_structured_data('==== json: ', json_str)

0 commit comments

Comments
 (0)