(query_string, keep_blank_values=True, encoding='utf-8')
return pm
Build a params dictionary from a query_string.

    Duplicate key/value pairs in the provided query_string will be
    returned as {'key': [val1, val2, ...]}. Single key/values will
    be returned as strings: {'key': 'value'}.
Build a params dictionary from a query_string.
Build a params dictionary from a query_string .
def parse_query_string(query_string, keep_blank_values=True, encoding='utf-8'):
    """Build a params dictionary from a query_string.

    Duplicate key/value pairs in the provided query_string will be
    returned as {'key': [val1, val2, ...]}. Single key/values will
    be returned as strings: {'key': 'value'}.
    """
    if image_map_pattern.match(query_string):
        # Server-side image map. Map the coords to 'x' and 'y'
        # (like CGI::Request does).
        pm = query_string.split(',')
        pm = {'x': int(pm[0]), 'y': int(pm[1])}
    else:
        pm = _parse_qs(query_string, keep_blank_values, encoding=encoding)
    return pm
def parse_query_string ( query_string , keep_blank_values = True , encoding = 'utf-8' ) : if image_map_pattern . match ( query_string ) : # Server-side image map. Map the coords to 'x' and 'y' # (like CGI::Request does). pm = query_string . split ( ',' ) pm = { 'x' : int ( pm [ 0 ] ) , 'y' : int ( pm [ 1 ] ) } else : pm = _parse_qs ( query_string , keep_blank_values , encoding = encoding ) return pm