From 19974ed0171ad4cec4b20e314645429a27bc084c Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Wed, 17 Jun 2020 11:58:32 +0300 Subject: [PATCH] Use chain.from_iterable in text.py --- sphinx/writers/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/writers/text.py b/sphinx/writers/text.py index b2ccd7b89..485bc010c 100644 --- a/sphinx/writers/text.py +++ b/sphinx/writers/text.py @@ -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: