1
0
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:
Vladimir Iakovlev 2017-10-15 16:16:43 +02:00
parent 10a4e910e9
commit a566e040f7

View File

@ -16,7 +16,7 @@ def _isdir(part):
@for_app('prove') @for_app('prove')
def match(command): def match(command):
return ( return (
'NOTESTS' in command.stdout 'NOTESTS' in command.output
and not any(_is_recursive(part) for part in command.script_parts[1:]) and not any(_is_recursive(part) for part in command.script_parts[1:])
and any(_isdir(part) for part in command.script_parts[1:])) and any(_isdir(part) for part in command.script_parts[1:]))