(self, delimiter='&', quote_plus=True, dont_quote='',
               delimeter=_absent)
return query
Examples:

          Query('a=a&b=#').encode() == 'a=a&b=%23'
          Query('a=a&b=#').encode(';') == 'a=a;b=%23'
          Query('a+b=c@d').encode(dont_quote='@') == 'a+b=c@d'
          Query('a+b=c@d').encode(quote_plus=False) == 'a%20b=c%40d'

        Until furl v0.4.6, the 'delimiter' argument was incorrectly
        spelled 'delimeter'. For backwards compatibility, accept both
        the correct 'delimiter' and the old, misspelled 'delimeter'.

        Keys and values are encoded application/x-www-form-urlencoded if
        <quote_plus> is True, percent-encoded otherwise.

        <dont_quote> exempts valid query characters from being
        percent-encoded, either in their entirety with dont_quote=True,
        or selectively with dont_quote=<string>, like
        dont_quote='/?@_'. Invalid query characters -- those not in
        self.SAFE_KEY_CHARS, like '#' and '^' -- are always encoded,
        even if included in <dont_quote>. For example:

          Query('#=^').encode(dont_quote='#^') == '%23=%5E'.

        Returns: A URL encoded query string using <delimiter> as the
        delimiter separating key:value pairs. The most common and
        default delimiter is '&', but ';' can also be specified. ';' is
        W3C recommended.
Examples:
Examples :
def encode(self, delimiter='&', quote_plus=True, dont_quote='',
               delimeter=_absent):
        """
        Examples:

          Query('a=a&b=#').encode() == 'a=a&b=%23'
          Query('a=a&b=#').encode(';') == 'a=a;b=%23'
          Query('a+b=c@d').encode(dont_quote='@') == 'a+b=c@d'
          Query('a+b=c@d').encode(quote_plus=False) == 'a%20b=c%40d'

        Until furl v0.4.6, the 'delimiter' argument was incorrectly
        spelled 'delimeter'. For backwards compatibility, accept both
        the correct 'delimiter' and the old, misspelled 'delimeter'.

        Keys and values are encoded application/x-www-form-urlencoded if
        <quote_plus> is True, percent-encoded otherwise.

        <dont_quote> exempts valid query characters from being
        percent-encoded, either in their entirety with dont_quote=True,
        or selectively with dont_quote=<string>, like
        dont_quote='/?@_'. Invalid query characters -- those not in
        self.SAFE_KEY_CHARS, like '#' and '^' -- are always encoded,
        even if included in <dont_quote>. For example:

          Query('#=^').encode(dont_quote='#^') == '%23=%5E'.

        Returns: A URL encoded query string using <delimiter> as the
        delimiter separating key:value pairs. The most common and
        default delimiter is '&', but ';' can also be specified. ';' is
        W3C recommended.
        """
        if delimeter is not _absent:
            delimiter = delimeter

        quote_key = create_quote_fn(self.SAFE_KEY_CHARS, quote_plus)
        quote_value = create_quote_fn(self.SAFE_VALUE_CHARS, quote_plus)

        pairs = []
        for key, value in self.params.iterallitems():
            utf8key = utf8(key, utf8(attemptstr(key)))
            quoted_key = quote_key(utf8key, dont_quote)

            if value is None:  # Example: http://sprop.su/?key.
                pair = quoted_key
            else:  # Example: http://sprop.su/?key=value.
                utf8value = utf8(value, utf8(attemptstr(value)))
                quoted_value = quote_value(utf8value, dont_quote)

                if not quoted_key:  # Unquote '=' to allow queries like '?==='.
                    quoted_value = quoted_value.replace('%3D', '=')

                pair = '%s=%s' % (quoted_key, quoted_value)

            pairs.append(pair)

        query = delimiter.join(pairs)

        return query
def encode ( self , delimiter = '&' , quote_plus = True , dont_quote = '' , delimeter = _absent ) : if delimeter is not _absent : delimiter = delimeter quote_key = create_quote_fn ( self . SAFE_KEY_CHARS , quote_plus ) quote_value = create_quote_fn ( self . SAFE_VALUE_CHARS , quote_plus ) pairs = [ ] for key , value in self . params . iterallitems ( ) : utf8key = utf8 ( key , utf8 ( attemptstr ( key ) ) ) quoted_key = quote_key ( utf8key , dont_quote ) if value is None : # Example: http://sprop.su/?key. pair = quoted_key else : # Example: http://sprop.su/?key=value. utf8value = utf8 ( value , utf8 ( attemptstr ( value ) ) ) quoted_value = quote_value ( utf8value , dont_quote ) if not quoted_key : # Unquote '=' to allow queries like '?==='. quoted_value = quoted_value . replace ( '%3D' , '=' ) pair = '%s=%s' % ( quoted_key , quoted_value ) pairs . append ( pair ) query = delimiter . join ( pairs ) return query