

def _write_status(self, message, is_error=False):
    if is_error:
        if self._is_last_status_double_space:
            sys.stderr.write(('%s\n\n' % message))
        else:
            sys.stderr.write(('\n%s\n\n' % message))
        self._is_last_status_double_space = True
    elif self.is_verbose:
        self._is_last_status_double_space = False
        sys.stdout.write(('%s\n' % message))

dataset/ETHPy150Open aws/aws-cli/awscli/customizations/cloudtrail/validation.py CloudTrailValidateLogs._write_status/original