def timestamp_to_datetime(response):
    "Converts a unix timestamp to a Python datetime object"
    if not response:
        return None
    try:
        response = int(response)
    except __HOLE__:
        return None
    return datetime.datetime.fromtimestamp(response)
dataset/ETHPy150Open Alephbet/gimel/vendor/redis/client.py/timestamp_to_datetime