def Flush(self):
    if not self.batch:
      return
    try:
      self.SendBatch()
    except urllib2.HTTPError, err:
      if err.code != 404:
        raise

      logging.info('Old server detected; turning off %s batching.', self.what)
      self.batching = False

      for path, payload, mime_type in self.batch:
        self.SendSingleFile(path, payload, mime_type)

      self.batch = []
      self.batch_size = 0
Flush the current batch.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/tools/appcfg.py/UploadBatcher.Flush