

def _get_body_content_string(soup, comments=True):
    if (not isinstance(soup, bs4.BeautifulSoup)):
        soup = bs4.BeautifulSoup(soup, HTML_PARSER)
    return ''.join(((('<!--{}-->'.format(C) if comments else '') if isinstance(soup, bs4.Comment) else str(C)) for C in soup.body.contents))

dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py _get_body_content_string/VarMisuse@63/77 `C`->`soup`