Skip to content

Commit

Permalink
replace itertools.chain.from_iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Feb 15, 2020
1 parent 2e81042 commit 43b11af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/assertion/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def _diff_text(left: str, right: str, verbose: int = 0) -> List[str]:

if any(
wcwidth(ch) <= 0
for ch in itertools.chain.from_iterable(x for x in left_lines + right_lines)
for ch in [ch for lines in left_lines + right_lines for ch in lines]
):
left_lines = [repr(x) for x in left_lines]
right_lines = [repr(x) for x in right_lines]
Expand Down

0 comments on commit 43b11af

Please sign in to comment.