Skip to content

Commit 13508e7

Browse files
DimitriPapadopoulosastanin
authored andcommitted
Unnecessary list call
The `sorted()` function returns a list: https://docs.python.org/3/library/functions.html#sorted
1 parent 69f67cd commit 13508e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tabulate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def escape_empty(val):
728728
}
729729

730730

731-
tabulate_formats = list(sorted(_table_formats.keys()))
731+
tabulate_formats = sorted(_table_formats.keys())
732732

733733
# The table formats for which multiline cells will be folded into subsequent
734734
# table rows. The key is the original format specified at the API. The value is

0 commit comments

Comments
 (0)