def aliasSub(requestContext, seriesList, search, replace):
    try:
        seriesList.name = re.sub(search, replace, seriesList.name)
    except AttributeError:
        for series in seriesList:
            series.name = re.sub(search, replace, series.name)
    return seriesList
Runs series names through a regex search/replace.
dataset/ETHPy150Open brutasse/graphite-api/graphite_api/functions.py/aliasSub