mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Doc fix for the issue2637.
This commit is contained in:
parent
8dcd06fc5a
commit
90161375c6
1 changed files with 4 additions and 3 deletions
|
@ -203,9 +203,10 @@ Utility functions
|
||||||
.. function:: quote(string[, safe])
|
.. function:: quote(string[, safe])
|
||||||
|
|
||||||
Replace special characters in *string* using the ``%xx`` escape. Letters,
|
Replace special characters in *string* using the ``%xx`` escape. Letters,
|
||||||
digits, and the characters ``'_.-'`` are never quoted. The optional *safe*
|
digits, and the characters ``'_.-'`` are never quoted. By default, this
|
||||||
parameter specifies additional characters that should not be quoted --- its
|
function is intended for quoting the path section of the URL.The optional
|
||||||
default value is ``'/'``.
|
*safe* parameter specifies additional characters that should not be quoted
|
||||||
|
--- its default value is ``'/'``.
|
||||||
|
|
||||||
Example: ``quote('/~connolly/')`` yields ``'/%7econnolly/'``.
|
Example: ``quote('/~connolly/')`` yields ``'/%7econnolly/'``.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue