diff options
| -rw-r--r-- | Doc/library/urllib.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/urllib.rst b/Doc/library/urllib.rst index f6fe045..90c0fa5 100644 --- a/Doc/library/urllib.rst +++ b/Doc/library/urllib.rst @@ -203,9 +203,10 @@ Utility functions .. function:: quote(string[, safe]) Replace special characters in *string* using the ``%xx`` escape. Letters, - digits, and the characters ``'_.-'`` are never quoted. The optional *safe* - parameter specifies additional characters that should not be quoted --- its - default value is ``'/'``. + digits, and the characters ``'_.-'`` are never quoted. By default, this + function is intended for quoting the path section of the URL.The optional + *safe* parameter specifies additional characters that should not be quoted + --- its default value is ``'/'``. Example: ``quote('/~connolly/')`` yields ``'/%7econnolly/'``. |
