Skip to content

Commit 43b11af

Browse files
committed
replace itertools.chain.from_iterable
1 parent 2e81042 commit 43b11af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/assertion/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _diff_text(left: str, right: str, verbose: int = 0) -> List[str]:
235235

236236
if any(
237237
wcwidth(ch) <= 0
238-
for ch in itertools.chain.from_iterable(x for x in left_lines + right_lines)
238+
for ch in [ch for lines in left_lines + right_lines for ch in lines]
239239
):
240240
left_lines = [repr(x) for x in left_lines]
241241
right_lines = [repr(x) for x in right_lines]

0 commit comments

Comments
 (0)