

def handle_starttag(self, tag, attrs):
    if (tag == 'meta'):
        http_equiv = content = None
        for (k, v) in attrs:
            if (k == 'http-equiv'):
                http_equiv = string.lower(v)
            elif (k == 'content'):
                content = v
        if ((http_equiv == 'content-type') and http_equiv):
            header = mimetools.Message(StringIO.StringIO(('%s: %s\n\n' % (http_equiv, content))))
            encoding = header.getparam('charset')
            if encoding:
                self.encoding = encoding
    if (tag in AUTOCLOSE):
        if (self.__stack and (self.__stack[(- 1)] == tag)):
            self.handle_endtag(tag)
    self.__stack.append(tag)
    attrib = {
        
    }
    if attrs:
        for (k, v) in attrs:
            attrib[string.lower(k)] = v
    self.__builder.start(tag, attrib)
    if (tag in IGNOREEND):
        self.__stack.pop()
        self.__builder.end(tag)

dataset/ETHPy150Open CollabQ/CollabQ/vendor/elementtree/HTMLTreeBuilder.py HTMLTreeBuilder.handle_starttag/VarMisuse@82/110 `content`->`http_equiv`