Skip to content

Commit

Permalink
Use splitlines
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Jan 9, 2024
1 parent 878e407 commit e9962b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ def test_cr_with_cm_operation():

def remove_trailing_whitespace(text: str) -> str:
text = text.strip()
return "\n".join(line.rstrip() for line in text.split("\n"))
return "\n".join(line.rstrip() for line in text.splitlines())


@pytest.mark.samples()
Expand Down

0 comments on commit e9962b3

Please sign in to comment.