def timestamp(dt):
    """
    Return a timestamp for a local, naive datetime instance.
    """
    try:
        return dt.timestamp()
    except __HOLE__:
        # Python 3.2 and earlier
        return time.mktime(dt.timetuple())
dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/site-packages/pip/_vendor/pkg_resources/tests/test_pkg_resources.py/timestamp