mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00:00
Fix flake8 errors: E711 comparison to None should be 'if cond is not None:'
This commit is contained in:
parent
797b42cfd7
commit
725605cd20
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user