(query_string, keep_blank_values=True)
parse_qs(query_string) -> dict

    Build a params dictionary from a query_string.
    If keep_blank_values is True (the default), keep
    values that are blank.
parse_qs(query_string) -> dict
parse_qs ( query_string ) - > dict
def parse_qs(query_string, keep_blank_values=True):
    """parse_qs(query_string) -> dict

    Build a params dictionary from a query_string.
    If keep_blank_values is True (the default), keep
    values that are blank.
    """

    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(",")
        return {"x": int(pm[0]), "y": int(pm[1])}
    else:
        pm = _parse_qs(query_string, keep_blank_values)
        return dict((k, v[0]) for k, v in pm.items() if v)
def parse_qs ( query_string , keep_blank_values = True ) : 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 ( "," ) return { "x" : int ( pm [ 0 ] ) , "y" : int ( pm [ 1 ] ) } else : pm = _parse_qs ( query_string , keep_blank_values ) return dict ( ( k , v [ 0 ] ) for k , v in pm . items ( ) if v )