1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-22 12:58:33 +00:00

Fix flake8 errors: E711 comparison to None should be 'if cond is not None:'

This commit is contained in:
Joseph Frazier 2016-10-05 11:25:37 -04:00
parent 797b42cfd7
commit 725605cd20

View File

@ -3,8 +3,8 @@ from thefuck.utils import replace_command
def match(command): def match(command):
return (re.search(r"([^:]*): Unknown command.*", command.stderr) != None return (re.search(r"([^:]*): Unknown command.*", command.stderr) is not None
and re.search(r"Did you mean ([^?]*)?", command.stderr) != None) and re.search(r"Did you mean ([^?]*)?", command.stderr) is not None)
def get_new_command(command): def get_new_command(command):