#NEWLINE# def location_url( response_type , redirect_uri , query ) : #NEWLINE# #INDENT# if ( response_type in [ [ 'code' ] , [ 'token' ] , [ 'none' ] ] ) : #NEWLINE# #INDENT# return ( '%s?%s' % ( redirect_uri , query ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( '%s#%s' % ( redirect_uri , response_type ) )