diff options
author | hut <hut@lavabit.com> | 2013-02-05 03:53:40 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-05 03:53:40 +0100 |
commit | aa6cc7a69c5eb9300f9f9ce31a04998be1dab0f1 (patch) | |
tree | 752b54e34215f154ed256b8323f0d51e54dcc961 /ranger | |
parent | 52274c675658a1834d0c5cac3a8a3c7ac5901348 (diff) | |
download | ranger-aa6cc7a69c5eb9300f9f9ce31a04998be1dab0f1.tar.gz |
config/commands: style improvement
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/commands.py | 5 |
1 files 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)) |