about summary refs log tree commit diff stats
path: root/ranger/api/commands.py
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-18 04:17:44 +0100
committernfnty <git@nfnty.se>2017-01-18 04:17:44 +0100
commit03ee065e35c6a8f0e0dc1e66d8f4c3e83c51f315 (patch)
tree69b56f67dee1d6dfcea869de897846baaded3fa6 /ranger/api/commands.py
parent51ec08da2f3c3c5466a60304dd94db9da45d99d5 (diff)
downloadranger-03ee065e35c6a8f0e0dc1e66d8f4c3e83c51f315.tar.gz
linting: Fix flake8 `W503`
Diffstat (limited to 'ranger/api/commands.py')
-rw-r--r--ranger/api/commands.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index 9985b996..0a3ea470 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -68,8 +68,7 @@ class CommandContainer(object):
     def get_command(self, name, abbrev=True):
         if abbrev:
             lst = [cls for cmd, cls in self.commands.items()
-                   if cls.allow_abbrev and cmd.startswith(name)
-                   or cmd == name]
+                   if cls.allow_abbrev and cmd.startswith(name) or cmd == name]
             if not lst:
                 raise KeyError
             if len(lst) == 1: