mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
#N/A: Fix deprecation warnings
This commit is contained in:
parent
985b2d9ec9
commit
10a4e910e9
@ -6,7 +6,7 @@ from thefuck.specific.brew import brew_available
|
|||||||
@for_app('brew')
|
@for_app('brew')
|
||||||
def match(command):
|
def match(command):
|
||||||
return (u'install' in command.script_parts
|
return (u'install' in command.script_parts
|
||||||
and u'brew cask install' in command.stderr)
|
and u'brew cask install' in command.output)
|
||||||
|
|
||||||
|
|
||||||
@eager
|
@eager
|
||||||
|
@ -3,7 +3,7 @@ from thefuck.utils import eager, get_closest, for_app
|
|||||||
|
|
||||||
@for_app('fab')
|
@for_app('fab')
|
||||||
def match(command):
|
def match(command):
|
||||||
return 'Warning: Command(s) not found:' in command.stderr
|
return 'Warning: Command(s) not found:' in command.output
|
||||||
|
|
||||||
|
|
||||||
# We need different behavior then in get_all_matched_commands.
|
# We need different behavior then in get_all_matched_commands.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user