diff options
| author | Senthil Kumaran <orsenthil@gmail.com> | 2009-08-31 16:40:27 (GMT) |
|---|---|---|
| committer | Senthil Kumaran <orsenthil@gmail.com> | 2009-08-31 16:40:27 (GMT) |
| commit | 90161375c6c9274bca193a277882ebff27f4140c (patch) | |
| tree | 90aab9694b319aed812a7d35fdc81fc92d9ebc63 | |
| parent | 8dcd06fc5a8a6d03d5625d192a9284cd4c3d8d2f (diff) | |
| download | cpython-90161375c6c9274bca193a277882ebff27f4140c.zip cpython-90161375c6c9274bca193a277882ebff27f4140c.tar.gz cpython-90161375c6c9274bca193a277882ebff27f4140c.tar.bz2 | |
Doc fix for the issue2637.
| -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/'``. |
