

def _oauth_parse_response(body):
    body = escape.native_str(body)
    p = urlparse.parse_qs(body, keep_blank_values=False)
    token = dict(key=p['oauth_token'][0], secret=p['oauth_token_secret'][0])
    special = ('oauth_token', 'oauth_token_secret')
    token.update(((k, p[k][0]) for k in p if (k not in special)))
    return token

dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/auth.py _oauth_parse_response/original