def GetPackageInfo(self, filename, get_hash=False):
    """Get package info.

    Args:
      filename: str, name of packageinfo
      get_hash: bool, default False, request that the server include
        a X-Pkgsinfo-Hash with the response, a sha256 hash of the pkginfo.
    Returns:
      if not request_hash, str pkginfo XML
      if request_hash, tuple of (str sha256 hash, str pkginfo XML)
    Raises:
      SimianServerError: if an error occured on the Simian server
    """
    url = '/pkgsinfo/%s' % urllib.quote(filename)
    if get_hash:
      url = url % '%s?hash=1'

    response = self._SimianRequest('GET', url, full_response=True)

    if get_hash:
      if 'x-pkgsinfo-hash' not in response.headers:
        logging.debug(
            'GET %s returned headers = %s', url, str(response.headers))
        raise SimianServerError('No hash was supplied with pkginfo')
      return response.headers['x-pkgsinfo-hash'], response.body
    else:
      return response.body
dataset/ETHPy150Open google/simian/src/simian/client/client.py/SimianClient.GetPackageInfo/swapped operands of `%`