#NEWLINE# def compress_tagsfile( uncompressed_tagsfile_path ) : #NEWLINE# #INDENT# 'Compress an uncompressed tagsfile.\n\n    :return: path to the compressed version of the tagsfile\n    ' #NEWLINE# ( _ , compressed_tagsfile_path ) = tempfile . mkstemp ( ) #NEWLINE# with open ( uncompressed_tagsfile_path , 'rb' ) as uncompressed : #NEWLINE# #INDENT# with gzip . open ( compressed_tagsfile_path , 'wb' , COMPRESSION_LEVEL ) as compressed : #NEWLINE# #INDENT# shutil . copyfileobj ( uncompressed , compressed_tagsfile_path ) #NEWLINE# #UNINDENT# #UNINDENT# return compressed_tagsfile_path