def handle_startendtag(self, tag, attrs):
        if tag in self.as_div:
            if attrs in 'class':
                attrs['class'] += ' ' + tag
            else:
                attrs['class'] = tag
            tag = 'div'
        self.output += self.get_tag_text(tag, attrs, True)
dataset/ETHPy150Open acabin/docphp/docphp.py/PopupHTMLParser.handle_startendtag/swapped operands of `in`