#NEWLINE# def getFileEntry( self , contents ) : #NEWLINE# #INDENT# '\n        Return an appropriate zip file entry\n        ' #NEWLINE# filename = self . mktemp ( ) #NEWLINE# z = zipfile . ZipFile ( filename , 'w' , self . compression ) #NEWLINE# z . writestr ( 'content' , contents ) #NEWLINE# z . close ( ) #NEWLINE# z = zipstream . ChunkingZipFile ( filename , 'r' ) #NEWLINE# return z . readfile ( 'content' )