#NEWLINE# def _download( self , url , md5 ) : #NEWLINE# #INDENT# log . info ( 'Downloading %s' , url ) #NEWLINE# filepath = download ( url , self . data_dir ) #NEWLINE# if ( md5 != checksum ( filepath , method = 'md5' ) ) : #NEWLINE# #INDENT# raise RuntimeError ( ( 'Checksum mismatch for %s.' % url ) ) #NEWLINE# #UNINDENT# return filepath