From 452ac216034347038e978e704f9e1d4706a902bb Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Thu, 31 Aug 2017 17:59:38 +0200 Subject: [PATCH] #682: Update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9c00d92..245fcce 100644 --- a/README.md +++ b/README.md @@ -306,7 +306,7 @@ side_effect(old_command: Command, fixed_command: str) -> None ``` and optional `enabled_by_default`, `requires_output` and `priority` variables. -`Command` has four attributes: `script`, `stdout`, `stderr` and `script_parts`. +`Command` has three attributes: `script`, `output` and `script_parts`. Rule shouldn't change `Command`. @@ -317,8 +317,8 @@ Simple example of the rule for running script with `sudo`: ```python def match(command): - return ('permission denied' in command.stderr.lower() - or 'EACCES' in command.stderr) + return ('permission denied' in command.output.lower() + or 'EACCES' in command.output) def get_new_command(command):