summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-11 18:08:53 +0200
committerhut <hut@lavabit.com>2011-10-11 18:08:53 +0200
commit1aa392f7c6bfd53423a3e6b9f698e5471f6444d7 (patch)
tree2fe44e9e16128f68d368f9508a9405d2f7cbe964
parent154c621364ced5a447173cf42b4c79cf95cc808f (diff)
downloadranger-1aa392f7c6bfd53423a3e6b9f698e5471f6444d7.tar.gz
ext.keybinding_parser: shortened construct_keybinding()
-rw-r--r--ranger/ext/keybinding_parser.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/ranger/ext/keybinding_parser.py b/ranger/ext/keybinding_parser.py
index 669ebc3b..d03d6ed1 100644
--- a/ranger/ext/keybinding_parser.py
+++ b/ranger/ext/keybinding_parser.py
@@ -123,10 +123,7 @@ def construct_keybinding(iterable):
 	"""
 	Does the reverse of parse_keybinding
 	"""
-	result = []
-	for c in iterable:
-		result.append(key_to_string(c))
-	return ''.join(result)
+	return ''.join(key_to_string(c) for c in iterable)
 
 
 def key_to_string(key):
10:31:23 +0100 fix #8242, fix #12586: fix 'formatFloat' with 'precision = 0' (#12592)' href='/ahoang/Nim/commit/changelog.md?h=devel&id=ffa9a7405fe55f91d3816d3cf4b3b1b82ede21ff'>ffa9a7405 ^
2acf74d45 ^
871d5e79b ^

e3e17009f ^
b70fd0400 ^
737fff590 ^
ffa9a7405 ^

85db42ad8 ^
35268c500 ^
e3e17009f ^
ffa9a7405 ^
b70fd0400 ^
ff950725f ^
a4ade4353 ^
ad13e18c7 ^
ffa9a7405 ^

a88004114 ^

a3d45d0c1 ^
ffa9a7405 ^
e3e17009f ^
144ad3697 ^


5bb6c67a4 ^
144ad3697 ^
56cf3403b ^


4cd86c084 ^



b70fd0400 ^
afeca3d9f ^
ffa9a7405 ^





5ba932e43 ^
94675c237 ^


9c46526cf ^
5e9ebe9ec ^

ffa9a7405 ^

b70fd0400 ^
e3e17009f ^
58f3e07b1 ^

38ab51c44 ^
b70fd0400 ^

245a954b2 ^
c98e0e22a ^


737fff590 ^
38ab51c44 ^
b70fd0400 ^
e3e17009f ^
114da04cb ^
f7d2f9c5f ^
e3e17009f ^
737fff590 ^
ffa9a7405 ^

f7ba7c711 ^

64e8f050e ^


f7d2f9c5f ^
737fff590 ^
b70fd0400 ^
a4ade4353 ^
ffa9a7405 ^

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