#NEWLINE# def _get_url( self , path ) : #NEWLINE# #INDENT# if ( urlparse . urlparse ( path ) . netloc == '' ) : #NEWLINE# #INDENT# url = self . url #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url = '' #NEWLINE# #UNINDENT# if self . version : #NEWLINE# #INDENT# url = ( '%s/v%s%s' % ( url , self . version , path ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url = ( '%s%s' % ( url , path ) ) #NEWLINE# #UNINDENT# return url