def expand_parameter_to_parameters(key, parameter):
    '\n    Convert a list of values into a list of URL parameters\n    '
    result = []
    if isinstance(parameter, list):
        for item in parameter:
            param = value_to_param(key, item)
            result.append(param)
    else:
        value = str(parameter)
        encoded_key = urllib.parse.quote(key)
        encoded_value = urllib.parse.quote(value)
        result.append(((encoded_key + '=') + encoded_value))
    return result
Convert a list of values into a list of URL parameters
def expand_parameter_to_parameters(key, parameter):
    '\n    \n    '
    result = []
    if isinstance(parameter, list):
        for item in parameter:
            param = value_to_param(key, item)
            result.append(param)
    else:
        value = str(parameter)
        encoded_key = urllib.parse.quote(key)
        encoded_value = urllib.parse.quote(value)
        result.append(((encoded_key + '=') + encoded_value))
    return result