From aa6cc7a69c5eb9300f9f9ce31a04998be1dab0f1 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 5 Feb 2013 03:53:40 +0100 Subject: config/commands: style improvement --- ranger/config/commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 7268dbab..bc6e674c 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -202,7 +202,8 @@ class shell(Command): flags = '' command = self.rest(1) - if not command and 'p' in flags: command = 'cat %f' + if not command and 'p' in flags: + command = 'cat %f' if command: if '%' in command: command = self.fm.substitute_macros(command) @@ -413,7 +414,7 @@ class setlocal(set_): Gives an option a new value. """ - PATH_RE=re.compile(r'^\s*path="?(.*?)"?\s*$') + PATH_RE = re.compile(r'^\s*path="?(.*?)"?\s*$') def execute(self): import os.path match = self.PATH_RE.match(self.arg(1)) -- cgit 1.4.1-2-gfad0