Skip to content

Commit

Permalink
Use generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Nov 16, 2024
1 parent e315f8c commit 506d1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mdpo/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 506d1a4

Please sign in to comment.