def url_encode_stream(obj, stream=None, charset='utf-8', encode_keys=False, sort=False, key=None, separator='&'):
 gen = _url_encode_impl(obj, charset, encode_keys, sort, key)
 if (stream is None):
  return gen
 for (idx, chunk) in enumerate(gen):
  if idx:
   stream.write(separator)
  stream.write(chunk)

def url_encode_stream ( obj , stream = None , charset = 'utf-8' , encode_keys = False , sort = False , key = None , separator = '&' ) : gen = _url_encode_impl ( obj , charset , encode_keys , sort , key ) if ( stream is None ) : return gen for ( idx , chunk ) in enumerate ( gen ) : if idx : stream . write ( separator ) stream . write ( chunk )
like :meth:url_encode but writes the results to a stream object .