From 506d1a4841edd4efb70bb7f1942b681415ec39ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar=20Rubio?= Date: Sat, 16 Nov 2024 22:11:22 +0100 Subject: [PATCH] Use generator --- src/mdpo/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdpo/io.py b/src/mdpo/io.py index ee27c45..6754a01 100644 --- a/src/mdpo/io.py +++ b/src/mdpo/io.py @@ -141,4 +141,4 @@ def flatten(xss): Returns: list: Flattened list. """ - return [x for xs in xss for x in xs] + return (x for xs in xss for x in xs)