Skip to content

Commit 3a8c941

Browse files
authored
Merge pull request astanin#343 from DimitriPapadopoulos/PERF
Apply ruff/Perflint rule PERF402
2 parents c2028c2 + 09550a7 commit 3a8c941

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tabulate/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,8 +1145,7 @@ def _flat_list(nested_list):
11451145
ret = []
11461146
for item in nested_list:
11471147
if isinstance(item, list):
1148-
for subitem in item:
1149-
ret.append(subitem)
1148+
ret.extend(item)
11501149
else:
11511150
ret.append(item)
11521151
return ret

0 commit comments

Comments
 (0)