def alias(requestContext, seriesList, newName):
    """
    Takes one metric or a wildcard seriesList and a string in quotes.
    Prints the string instead of the metric name in the legend.

    Example::

        &target=alias(Sales.widgets.largeBlue,"Large Blue Widgets")

    """
    try:
        seriesList.name = newName
    except __HOLE__:
        for series in seriesList:
            series.name = newName
    return seriesList
dataset/ETHPy150Open brutasse/graphite-api/graphite_api/functions.py/alias