

def find_scopes_for_services(service_names=None):
    'Creates a combined list of scope URLs for the desired services.\n\n  This method searches the AUTH_SCOPES dictionary.\n\n  Args:\n    service_names: list of strings (optional) Each name must be a key in the\n                   AUTH_SCOPES dictionary. If no list is provided (None) then\n                   the resulting list will contain all scope URLs in the\n                   AUTH_SCOPES dict.\n\n  Returns:\n    A list of URL strings which are the scopes needed to access these services\n    when requesting a token using AuthSub or OAuth.\n  '
    result_scopes = []
    if (service_names is None):
        for (service_name, scopes) in AUTH_SCOPES.iteritems():
            result_scopes.extend(service_names)
    else:
        for service_name in service_names:
            result_scopes.extend(AUTH_SCOPES[service_name])
    return result_scopes

dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py find_scopes_for_services/VarMisuse@47/268 `scopes`->`service_names`