def __init__(self, what, app_id, version, server):
    """Constructor.

    Args:
      what: Either 'file' or 'blob' indicating what kind of objects
        this batcher uploads.  Used in messages and URLs.
      app_id: The application ID.
      version: The application version string.
      server: The RPC server.
    """
    assert what in ('file', 'blob'), repr(what)
    self.what = what
    self.app_id = app_id
    self.version = version
    self.server = server
    self.single_url = '/api/appversion/add' + what
    self.batch_url = self.single_url + 's'
    self.batching = True
    self.batch = []
    self.batch_size = 0
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/tools/appcfg.py/UploadBatcher.__init__/original