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):