From 1aa392f7c6bfd53423a3e6b9f698e5471f6444d7 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 11 Oct 2011 18:08:53 +0200 Subject: ext.keybinding_parser: shortened construct_keybinding() --- ranger/ext/keybinding_parser.py | 5 +---- 1 file changed, 1 insertion(+), 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): -- cgit 1.4.1-2-gfad0