about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/view_base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/gui/widgets/view_base.py b/ranger/gui/widgets/view_base.py
index c87bdede..80061004 100644
--- a/ranger/gui/widgets/view_base.py
+++ b/ranger/gui/widgets/view_base.py
@@ -142,7 +142,7 @@ class ViewBase(Widget, DisplayableContainer):  # pylint: disable=too-many-instan
                 def action_string(hint):
                     return hint[1]
 
-                return (list(sorted(group, key=action_string))
+                return (sorted(group, key=action_string)
                         for _, group
                         in groupby(
                             hints,
@@ -154,12 +154,12 @@ class ViewBase(Widget, DisplayableContainer):  # pylint: disable=too-many-instan
             if len(hints) > self.fm.settings.hint_collapse_threshold:
                 def first_key_in_group(group):
                     return group[0][0][0]
-                grouped_hints = [
+                grouped_hints = (
                     [(first_key_in_group(hint_group), "...")]
                     if len(hint_group) > 1
                     else hint_group
                     for hint_group in grouped_hints
-                ]
+                )
 
             # Sort by the first action in group.
             grouped_hints = sorted(grouped_hints, key=lambda g: g[0][1])