'Return an appropriate zip file entry'

def getFileEntry(self, contents):

    filename = self.mktemp()
    with zipfile.ZipFile(filename, 'w', self.compression) as z:
        z.writestr('content', contents)
    z = zipstream.ChunkingZipFile(filename, 'r')
    return z.readfile('content')
