summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parent154c621364ced5a447173cf42b4c79cf95cc808f (diff)
downloadranger-1aa392f7c6bfd53423a3e6b9f698e5471f6444d7.tar.gz
ext.keybinding_parser: shortened construct_keybinding()
Diffstat (limited to 'ranger')
-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):
lt'>
e9e4b4ff ^
2c5ea01d ^
e9e4b4ff ^


2c5ea01d ^
e9e4b4ff ^







2c5ea01d ^
e9e4b4ff ^
0c2c782d ^

6ac4be61 ^
ea775b1c ^








6ac4be61 ^
ea775b1c ^

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