From 725605cd20b29e200f6aaa90f29053bc623b0e51 Mon Sep 17 00:00:00 2001 From: Joseph Frazier <1212jtraceur@gmail.com> Date: Wed, 5 Oct 2016 11:25:37 -0400 Subject: [PATCH] Fix flake8 errors: E711 comparison to None should be 'if cond is not None:' --- thefuck/rules/unknown_command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):