@utils.check_messages('confusing-with-statement')
def visit_with(self, node):
    pairs = node.items
    if pairs:
        for (prev_pair, pair) in zip(pairs, pairs[1:]):
            if (isinstance(prev_pair[1], astroid.AssignName) and ((pair[1] is None) and (not isinstance(pair[0], astroid.Call)))):
                self.add_message('confusing-with-statement', node=node)
@utils.check_messages('confusing-with-statement')
def visit_with(self, node):
    pairs = node.items
    if pairs:
        for (prev_pair, pair) in zip(pairs, pairs[1:]):
            if (isinstance(prev_pair[1], astroid.AssignName) and ((pair[1] is None) and (not isinstance(pair[0], astroid.Call)))):
                self.add_message('confusing-with-statement', node=node)