From 2112f8c441916e783cb3a40ff940beb5ef87362f Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 16 Feb 2010 13:52:04 +0100 Subject: commands: improved style --- ranger/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/commands.py b/ranger/commands.py index be2665fa..a6fc77fb 100644 --- a/ranger/commands.py +++ b/ranger/commands.py @@ -397,7 +397,7 @@ class grep(Command): if line.rest(1): action = ['grep', '--color=always', '--line-number'] action.extend(['-e', line.rest(1), '-r']) - action.extend(map(lambda x: x.path, self.fm.env.get_selection())) + action.extend(f.path for f in self.fm.env.get_selection()) self.fm.execute_command(action, flags='p') -- cgit 1.4.1-2-gfad0