code: def compress(self, filename):
          
          compressed_filename = self.get_compressed_filename(filename)
          if not compressed_filename:
              return
  
          self.do_compress(filename, compressed_filename)
docs: Compress a file, only if needed.