parameters: (uri)
return_statement: return quote(unquote_unreserved(uri), safe="!#$%&'()*+,/:;=?@[]~")
docstring: Re-quote the given URI.
  
      This function passes the given URI through an unquote/quote cycle to
      ensure that it is fully and consistently quoted.
docstring_summary: Re-quote the given URI.
docstring_tokens: Re - quote the given URI .
function: def requote_uri(uri):
      """Re-quote the given URI.
  
      This function passes the given URI through an unquote/quote cycle to
      ensure that it is fully and consistently quoted.
      """
      # Unquote only the unreserved characters
      # Then quote only illegal characters (do not quote reserved, unreserved,
      # or '%')
      return quote(unquote_unreserved(uri), safe="!#$%&'()*+,/:;=?@[]~")
function_tokens: def requote_uri ( uri ) : # Unquote only the unreserved characters # Then quote only illegal characters (do not quote reserved, unreserved, # or '%') return quote ( unquote_unreserved ( uri ) , safe = "!#$%&'()*+,/:;=?@[]~" )