

def handle_starttag(self, tag, attributes):
    name = [v for (k, v) in attributes if (k == 'id')]
    if name:
        self.names.append(name[0])
    if (tag == 'a'):
        name = [v for (k, v) in attributes if (k == 'name')]
        if name:
            self.names.append(name[0])

dataset/ETHPy150Open DjangoAdminHackers/django-linkcheck/linkcheck/__init__.py AnchorLister.handle_starttag/original