summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMichael Blahay <mblahay@users.noreply.github.com>2023-04-26 20:52:23 (GMT)
committerGitHub <noreply@github.com>2023-04-26 20:52:23 (GMT)
commit44010d0f1203134cd8f885ca574caaef373e80f6 (patch)
tree824044d4d621df3c17cff55f1ce03ea09b8af359 /Doc
parente901588002f3ac5bf4d3c61cda5ad7bf50bacadd (diff)
downloadcpython-44010d0f1203134cd8f885ca574caaef373e80f6.zip
cpython-44010d0f1203134cd8f885ca574caaef373e80f6.tar.gz
cpython-44010d0f1203134cd8f885ca574caaef373e80f6.tar.bz2
gh-48241: Clarify URL needs to be encoded when provided to urlopen and Request (#103855)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/urllib.request.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 64cc9c3..1b05458 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -28,8 +28,8 @@ The :mod:`urllib.request` module defines the following functions:
.. function:: urlopen(url, data=None[, timeout], *, cafile=None, capath=None, cadefault=False, context=None)
- Open the URL *url*, which can be either a string or a
- :class:`Request` object.
+ Open *url*, which can be either a string containing a valid, properly
+ encoded URL, or a :class:`Request` object.
*data* must be an object specifying additional data to be sent to the
server, or ``None`` if no such data is needed. See :class:`Request`
@@ -192,7 +192,7 @@ The following classes are provided:
This class is an abstraction of a URL request.
- *url* should be a string containing a valid URL.
+ *url* should be a string containing a valid, properly encoded URL.
*data* must be an object specifying additional data to send to the
server, or ``None`` if no such data is needed. Currently HTTP