@property
    def args(self):
        from urlparse import parse_qs
        raw_args = parse_qs(self.environ.get('QUERY_STRING', ''), \
            keep_blank_values=1)
        args = {}
        for key, value in raw_args.items():
            if len(value) <= 1:
                args[key] = value[0]
            else:
                args[key] = value
        return args
dataset/ETHPy150Open fengsp/batpod/batpod.py/Request.args/original