#NEWLINE# @ staticmethod #NEWLINE# def parse_oauth_response( data ) : #NEWLINE# #INDENT# 'Parses the data string as OAuth response, returning it as a dict.\n\n        The keys and values of the dictionary will be text strings\n        (i.e. not binary strings).\n        ' #NEWLINE# if isinstance ( data , six . binary_type ) : #NEWLINE# #INDENT# data = data . decode ( 'utf-8' ) #NEWLINE# #UNINDENT# qsl = urllib_parse . parse_qsl ( data ) #NEWLINE# resp = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , value ) in qsl : #NEWLINE# #INDENT# resp [ key ] = value #NEWLINE# #UNINDENT# return resp