#NEWLINE# def download( self , remote_path , local_path_or_fileobj ) : #NEWLINE# #INDENT# response = self . _send ( 'GET' , remote_path , 200 , stream = True ) #NEWLINE# if isinstance ( local_path_or_fileobj , basestring ) : #NEWLINE# #INDENT# with open ( local_path_or_fileobj , 'wb' ) as f : #NEWLINE# #INDENT# self . _download ( f , response ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . _download ( local_path_or_fileobj , response )