about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2018-03-04 15:07:23 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2018-03-04 15:08:04 +0100
commit72ea7926b30e0842ac213aab23d9f94df1cdbb50 (patch)
treed0e1e3cb49b565d8be86d3d92e0f154fa0d83b8c
parent727fd3aa19b904e6359d76792735fa155015a0ec (diff)
downloadranger-72ea7926b30e0842ac213aab23d9f94df1cdbb50.tar.gz
Cleanup lists and generators
-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])
77aaf04f13fc'>de495ae ^
222a11a ^
de495ae ^

































0248339 ^
de495ae ^





0248339 ^
de495ae ^



0248339 ^
de495ae ^



0248339 ^
de495ae ^














e27165c ^





















de495ae ^


























222a11a ^
de495ae ^
















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168