def parse_qs(qs, keep_blank_values=<NUM_LIT:0>, strict_parsing=<NUM_LIT:0>):
dict = {}<EOL>for name, value in parse_qsl(qs, keep_blank_values, strict_parsing):<EOL><INDENT>if name in dict:<EOL><INDENT>dict[name].append(value)<EOL><DEDENT>else:<EOL><INDENT>dict[name] = [value]<EOL><DEDENT><DEDENT>return dict<EOL>
Parse a query given as a string argument.

        Arguments:

        qs: percent-encoded query string to be parsed

        keep_blank_values: flag indicating whether blank values in
            percent-encoded queries should be treated as blank strings.
            A true value indicates that blanks should be retained as
            blank strings.  The default false value indicates that
            blank values are to be ignored and treated as if they were
            not included.

        strict_parsing: flag indicating what to do with parsing errors.
            If false (the default), errors are silently ignored.
            If true, errors raise a ValueError exception.