#NEWLINE# def request( self , url , **extra_params ) : #NEWLINE# #INDENT# encoded_params = self . encode_params ( url , ** extra_params ) #NEWLINE# endpoint_url = self . endpoint #NEWLINE# if ( '?' in endpoint_url ) : #NEWLINE# #INDENT# endpoint_url = ( '%s&%s' % ( endpoint_url . rstrip ( '&' ) , encoded_params ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# endpoint_url = ( '%s?%s' % ( endpoint_url , encoded_params ) ) #NEWLINE# #UNINDENT# response = self . fetch ( endpoint_url ) #NEWLINE# if response : #NEWLINE# #INDENT# return self . handle_response ( response , url ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ProviderException ( ( 'Error fetching "%s"' % extra_params ) )