#NEWLINE# def prepare_request_uri_query( oauth_params , uri ) : #NEWLINE# #INDENT# 'Prepare the Request URI Query.\n\n    Per `section 3.5.3`_ of the spec.\n\n    .. _`section 3.5.3`: http://tools.ietf.org/html/rfc5849#section-3.5.3\n\n    ' #NEWLINE# ( sch , net , path , par , query , fra ) = urlparse ( oauth_params ) #NEWLINE# query = urlencode ( _append_params ( oauth_params , ( extract_params ( query ) or [ ] ) ) ) #NEWLINE# return urlunparse ( ( sch , net , path , par , query , fra ) )