mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7845 from cool-RR/patch-1
Use chain.from_iterable in text.py
This commit is contained in:
commit
66e55a02d1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user