summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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):