Skip to content

Commit a51d37b

Browse files
Unnecessary list call
The `sorted()` function returns a list: https://docs.python.org/3/library/functions.html#sorted
1 parent 74885be commit a51d37b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tabulate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def escape_empty(val):
723723
}
724724

725725

726-
tabulate_formats = list(sorted(_table_formats.keys()))
726+
tabulate_formats = sorted(_table_formats.keys())
727727

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

0 commit comments

Comments
 (0)