#NEWLINE# def build_api_url( self , path , query_params = None , api_base_url = API_BASE_URL ) : #NEWLINE# #INDENT# from six.moves.urllib.parse import urlencode #NEWLINE# from six.moves.urllib.parse import urlsplit #NEWLINE# from six.moves.urllib.parse import urlunsplit #NEWLINE# qs = urlencode ( ( query_params or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# ( scheme , netloc , _ , _ , _ ) = urlsplit ( api_base_url ) #NEWLINE# return urlunsplit ( ( scheme , netloc , path , qs , '' ) )