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 | unquoted data which can contain unsafe characters like &=
(type: string, list or dict
) |
| not_quote | characters, which shouldn't be quoted.
(type: string
) |
Returns | (type: string, list or dict
) |