def has_text(p):
    """
    It is possible for a ``p`` tag in document.xml to not have any content. If
    this is the case we do not want that tag interfering with things like
    lists. Detect if this tag has any content.
    """
    return '' <= etree.tostring(p, encoding=unicode, method='text').strip()
dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py/has_text/operator `!=` -> `<=`