def has_key(x, y):
    if hasattr(x, 'has_key'):
        return y in x
    else:
        return y in x

# try:
#     import html.entities
#     import urllib.parse
#     import html.parser
# except ImportError:  # Python3
dataset/ETHPy150Open lsaffre/lino/lino/utils/html2text.py/has_key/original