def _check_redeclared_assign_name(self, targets):
    dummy_variables_rgx = lint_utils.get_global_option(self, 'dummy-variables-rgx', default=None)
    for target in targets:
        if (not isinstance(target, astroid.Tuple)):
            continue
        found_names = []
        for element in target.elts:
            if isinstance(element, astroid.Tuple):
                self._check_redeclared_assign_name([element])
            elif (isinstance(element, astroid.AssignName) and (element.name != '_')):
                if (dummy_variables_rgx and dummy_variables_rgx.match(element.name)):
                    return
                found_names.append(element.name)
        names = collections.Counter(found_names)
        for (name, count) in names.most_common():
            if (count > 1):
                self.add_message('redeclared-assigned-name', args=(name,), node=target)
def _check_redeclared_assign_name(self, targets):
    dummy_variables_rgx = lint_utils.get_global_option(self, 'dummy-variables-rgx', default=None)
    for target in targets:
        if (not isinstance(target, astroid.Tuple)):
            continue
        found_names = []
        for element in target.elts:
            if isinstance(element, astroid.Tuple):
                self._check_redeclared_assign_name([element])
            elif (isinstance(element, astroid.AssignName) and (element.name != '_')):
                if (dummy_variables_rgx and dummy_variables_rgx.match(element.name)):
                    return
                found_names.append(element.name)
        names = collections.Counter(found_names)
        for (name, count) in names.most_common():
            if (count > 1):
                self.add_message('redeclared-assigned-name', args=(name,), node=target)