summary refs log tree commit diff stats
path: root/ranger/api
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/api')
-rw-r--r--ranger/api/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index 56fc94a3..f5011232 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -389,7 +389,7 @@ class FunctionCommand(Command):
         args, keywords = list(), dict()
         for arg in self.args[1:]:
             equal_sign = arg.find("=")
-            value = arg if (equal_sign is -1) else arg[equal_sign + 1:]
+            value = arg if equal_sign == -1 else arg[equal_sign + 1:]
             try:
                 value = int(value)
             except ValueError: