mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-27 07:32:33 +01:00
Fix flake8 errors: E711 comparison to None should be 'if cond is not None:'
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user