

def make_url_args(params):
    "Utility function for constructing a URL query string from a dictionary\n    of parameters.  The dictionary's values can be of various types: lists,\n    tuples, dictionaries, strings, or None.\n\n    :param dict params: the key-value pairs to construct a query string from\n    :rtype: string"
    p = []
    for (key, value) in params.iteritems():
        if isinstance(value, (list, tuple)):
            for v in value:
                p.append((key, v))
        elif isinstance(value, dict):
            for (k, v) in value.items():
                p.append((('%s[%s]' % (key, k)), k))
        elif isinstance(value, bool):
            p.append((key, str(value).lower()))
        elif (value is None):
            continue
        else:
            p.append((key, str(value)))
    return urllib.urlencode(p).encode('UTF-8')

dataset/ETHPy150Open tempodb/tempodb-python/tempodb/endpoint.py make_url_args/VarMisuse@106/224 `v`->`k`