def cleanpath(path):

    items = path.split('.')
    if len(items) > 1:
        path = re.sub('[^\w\.]+', '_', '_'.join(items[:-1]) + '.'
                      + ''.join(items[-1:]))
    else:
        path = re.sub('[^\w\.]+', '_', ''.join(items[-1:]))
    return path
Returns the max-age from the response Cache-Control header as an integer
dataset/ETHPy150Open uwdata/termite-visualizations/web2py/gluon/fileutils.py/cleanpath--crossover with--dataset/ETHPy150Open adieu/django-nonrel/django/utils/cache.py/get_max_age