'Visit a Call node.'

@utils.check_messages('open-without-encoding')
def visit_call(self, node):

    if hasattr(node, 'func'):
        infer = utils.safe_infer(node.func)
        if (infer and (infer.root().name == '_io')):
            if (getattr(node.func, 'name', None) in ['open', 'file']):
                self._check_open_encoding(node)
