Make strings, lists and dictionaries containing strings quoted using
urllib.quote. Return value has the same type as the parameter given to
this function. If the data is not a string, list or a dictionary, it is
simply returned.
Warning: If you want to quote a path containing '/' as seperators, you
have to add the slash to not_quote, or it will be quoted also!!!
- Parameters:
data (string, list or dict) - unquoted data which can contain unsafe characters like
&=
not_quote (string) - characters, which shouldn't be quoted.
- Returns: string, list or dict
|