

def get_concrete_response(self):
    result = self.get_data_response()
    if (type(result) == Redirection):
        (invocation, args, kwargs) = result.rendered_invocation
        rendered_invocation = make_cmd_invocation(invocation, args, kwargs)
        req = CMDRequest(rendered_invocation)
        return CMDController(req, self.manifest, line.model_mock)
    else:
        response = {
            'stdout': [result['body']],
            'stderr': [],
        }
    stdout = response['stdout']
    if hasattr(stdout, 'write'):
        print(stdout.write())
    else:
        for line in stdout:
            print(line)
    for line in response['stderr']:
        sys.stderr.write(line)

dataset/ETHPy150Open priestc/giotto/giotto/controllers/cmd.py CMDController.get_concrete_response/VarMisuse@69/97 `self`->`line`