def _get_query_string(self):
    param_pairs = []
    for key, value in self.query.iteritems():
      quoted_key = urllib.quote_plus(str(key))
      if value is None:
        param_pairs.append(quoted_key)
      else:
        quoted_value = urllib.quote_plus(str(value))
        param_pairs.append('%s=%s' % (quoted_key, quoted_value))
    return '&'.join(param_pairs)
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/atom/http_core.py/Uri._get_query_string/original