Commit 8a7dac44 authored by R. David Murray's avatar R. David Murray

Fix references to urllib docs, and clarify action of unquote to

match those docs.
parent ea39f634
......@@ -53,7 +53,7 @@ def url_quote(s):
"Python 'urllib'
module":http://www.python.org/doc/current/lib/module-urllib.html
'url_quote' function.
'quote' function.
"""
......@@ -66,30 +66,33 @@ def url_quote_plus(s):
"Python 'urllib'
module":http://www.python.org/doc/current/lib/module-urllib.html
'url_quote_plus' function.
'quote_plus' function.
"""
def url_unquote(s):
"""
Convert HTML character entities in strings back to their real values.
Convert HTML %xx character entities into the characters they
represent. (Undoes the affects of url_quote).
See Also
"Python 'urllib'
module":http://www.python.org/doc/current/lib/module-urllib.html
'url_unquote' function.
"Python 'urllib'
module":http://www.python.org/doc/current/lib/module-urllib.html
'unquote' function.
"""
def url_unquote(s):
def url_unquote_plus(s):
"""
Like url_unquote, but also replace '+' characters with spaces.
Like url_unquote but also replace '+' characters with blank spaces.
See Also
See Also
"Python 'urllib'
module":http://www.python.org/doc/current/lib/module-urllib.html
'url_unquote_plus' function.
'unquote_plus' function.
"""
def newline_to_br(s):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment