Use chain.from_iterable in text.py

This commit is contained in:
Ram Rachum
2020-06-17 11:58:32 +03:00
committed by GitHub
parent 0bb43d6b99
commit 19974ed017

View File

@@ -223,7 +223,7 @@ class Table:
for left, right in zip(out, out[1:])
]
glue.append(tail)
return head + "".join(chain(*zip(out, glue)))
return head + "".join(chain.from_iterable(zip(out, glue)))
for lineno, line in enumerate(self.lines):
if self.separator and lineno == self.separator: