def entityref(c):
    if not UNICODE_SNOB and list(unifiable.keys()) in c:
        return unifiable[c]
    else:
        try:
            name2cp(c)
        except KeyError:
            return "&" + c + ';'
        else:
            try:
                return chr(name2cp(c))
            except NameError:  # Python3
                return chr(name2cp(c))
dataset/ETHPy150Open lsaffre/lino/lino/utils/html2text.py/entityref/swapped operands of `in`