#NEWLINE# def download_cinspect_data_archive( url = None ) : #NEWLINE# #INDENT# if ( url is None ) : #NEWLINE# #INDENT# url = ARCHIVE_URL #NEWLINE# #UNINDENT# t = tempfile . mkdtemp ( ) #NEWLINE# print ( 'Downloading sources to' , t ) #NEWLINE# filename = os . path . join ( t , 'master.tar.gz' ) #NEWLINE# reporthook = ( lambda x , y , z : _spin ( 5 ) ) #NEWLINE# urlretrieve ( url , filename , reporthook ) #NEWLINE# print ( 'Sources downloaded to' , filename ) #NEWLINE# return reporthook