diff --git a/thefuck/rules/unknown_command.py b/thefuck/rules/unknown_command.py index ee7139e2..30a90bc8 100644 --- a/thefuck/rules/unknown_command.py +++ b/thefuck/rules/unknown_command.py @@ -3,8 +3,8 @@ from thefuck.utils import replace_command def match(command): - return (re.search(r"([^:]*): Unknown command.*", command.stderr) != None - and re.search(r"Did you mean ([^?]*)?", command.stderr) != None) + return (re.search(r"([^:]*): Unknown command.*", command.stderr) is not None + and re.search(r"Did you mean ([^?]*)?", command.stderr) is not None) def get_new_command(command):