summaryrefslogtreecommitdiffstats
path: root/Doc/library/urllib.request.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-10-19 18:37:08 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-10-19 18:37:08 (GMT)
commita41c9426853c422234be1a9182e9084347d2ca8f (patch)
tree0f0f47c06457a7ebc642ae6f56c546dcabda8550 /Doc/library/urllib.request.rst
parentc6b4ef105e68165467de8424aab4b8b40fc458ed (diff)
downloadcpython-a41c9426853c422234be1a9182e9084347d2ca8f.zip
cpython-a41c9426853c422234be1a9182e9084347d2ca8f.tar.gz
cpython-a41c9426853c422234be1a9182e9084347d2ca8f.tar.bz2
Doc improvements suggested by Éric Araujo for the new 'HEAD' Request feature.
Diffstat (limited to 'Doc/library/urllib.request.rst')
-rw-r--r--Doc/library/urllib.request.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index b16475a..b69b3b3 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -177,7 +177,7 @@ The following classes are provided:
*method* should be a string that indicates the HTTP request method that
will be used (e.g. ``'HEAD'``). Its value is stored in the
- :attr:`Request.method` attribute and is used by :meth:`Request.get_method()`.
+ :attr:`~Request.method` attribute and is used by :meth:`get_method()`.
.. versionchanged:: 3.3
:attr:`Request.method` argument is added to the Request class.
@@ -379,11 +379,11 @@ request.
.. attribute:: Request.method
The HTTP request method to use. This value is used by
- :meth:`Request.get_method` to override the computed HTTP request
- method that would otherwise be returned. This attribute is
- initialized with the value of the *method* argument passed to the constructor.
+ :meth:`~Request.get_method` to override the computed HTTP request
+ method that would otherwise be returned. This attribute is initialized with
+ the value of the *method* argument passed to the constructor.
- ..versionadded:: 3.3
+ .. versionadded:: 3.3
.. method:: Request.add_data(data)
@@ -400,7 +400,7 @@ request.
This is only meaningful for HTTP requests.
.. versionchanged:: 3.3
- get_method now looks at the value of :attr:`Request.method` first.
+ get_method now looks at the value of :attr:`Request.method`.
.. method:: Request.has_data()