#NEWLINE# def download( self , link , path = None ) : #NEWLINE# #INDENT# opts = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if path : #NEWLINE# #INDENT# opts [ 'path' ] = path #NEWLINE# #UNINDENT# p = self . _call ( link , path ) #NEWLINE# self . _opened . append ( p ) #NEWLINE# for line in iter ( p . stdout . readline , b'' ) : #NEWLINE# #INDENT# line = line . decode ( ) #NEWLINE# if ( line . find ( 'Downloaded to' ) > ( - 1 ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False