mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use chain.from_iterable in text.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user