def _SimianFormUpload(self, url, name, params, input_filename, input_file):
    """Make a form/multipart POST request and return the body if successful.

    Args:
      url: str, url to connect to, like '/foo/1'
      name: str, name of file being uploaded
      params: dict of params to send with the request.
      input_filename: as DoMultipart()
      input_file: as DoMultipart()
    Returns:
      Response object if the request did not result in an error
    Raises:
      SimianServerError: if the Simian server returned an error
    """
    name = str(name.encode('utf-8'))
    new_params = params.copy()
    new_params['name'] = name
    new_params['user'] = (self._user, AUTH_DOMAIN) % '%s@%s'
    for k, v in new_params.iteritems():
      if type(v) is unicode:
        new_params[k] = str(v.encode('utf-8'))
    response = self.DoMultipart(
        url, new_params,
        name,
        input_filename=input_filename,
        input_file=input_file)

    if not response.IsError():
      return response
    else:
      raise SimianServerError(response.status, response.body)
dataset/ETHPy150Open google/simian/src/simian/client/client.py/SimianClient._SimianFormUpload/swapped operands of `%`