summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-02-04 10:15:30 +0100
committernfnty <git@nfnty.se>2017-02-04 10:22:00 +0100
commit2597579f3b8a113aa0c00651516fbe1bb5241c72 (patch)
treecdcdfb07dc10f0232cdd4074bb658370a0403b5b
parentbb07a065b301d4393bb4382cf5066ec5905dff04 (diff)
api.commands.CommandContainer.alias: Fix syntax error for Python < 3.5
-rw-r--r--ranger/api/commands.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index 72af0ebd..56fc94a3 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -39,10 +39,7 @@ class CommandContainer(FileManagerAware):
class CommandAlias(cmd): # pylint: disable=too-few-public-methods
def __init__(self, line, *args, **kwargs):
super(CommandAlias, self).__init__(
- self.full_command + ''.join(_ALIAS_LINE_RE.split(line)[1:]),
- *args,
- **kwargs,
- )
+ (self.full_command + ''.join(_ALIAS_LINE_RE.split(line)[1:])), *args, **kwargs)
self.commands[name] = type(name, (CommandAlias,), dict(full_command=full_command))
def load_commands_from_module(self, module):