

def handle_starttag(self, tag, attrs):
    if (tag == 'a'):
        href = [v for (k, v) in attrs if (k == 'href')]
        if href:
            self.in_a = True
            self.url = href[0]
    elif ((tag == 'img') and self.in_a):
        src = [v for (k, v) in attrs if (k == 'src')]
        if src:
            self.text += (' [image:%s] ' % attrs[0])

dataset/ETHPy150Open DjangoAdminHackers/django-linkcheck/linkcheck/__init__.py URLLister.handle_starttag/VarMisuse@112/137 `src`->`attrs`