summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-11-23 23:57:58 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2017-11-23 23:57:58 (GMT)
commitff847d1ac7e6a8ee1fb6f8883cfb4aec4b4a9b03 (patch)
tree977839c6cf63c20540af78240c219ccd39a190cc /Doc
parenta645b23ffc76073a2eb4e77b88cb7648cfc6ef77 (diff)
downloadcpython-ff847d1ac7e6a8ee1fb6f8883cfb4aec4b4a9b03.zip
cpython-ff847d1ac7e6a8ee1fb6f8883cfb4aec4b4a9b03.tar.gz
cpython-ff847d1ac7e6a8ee1fb6f8883cfb4aec4b4a9b03.tar.bz2
bpo-31325: Fix usage of namedtuple in RobotFileParser.parse() (GH-4529) (#4533)
(cherry picked from commit 3df02dbc8e197053105f9dffeae40b04ec66766e)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/urllib.robotparser.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/urllib.robotparser.rst b/Doc/library/urllib.robotparser.rst
index 7d31932..e3b90e6 100644
--- a/Doc/library/urllib.robotparser.rst
+++ b/Doc/library/urllib.robotparser.rst
@@ -69,10 +69,10 @@ structure of :file:`robots.txt` files, see http://www.robotstxt.org/orig.html.
.. method:: request_rate(useragent)
Returns the contents of the ``Request-rate`` parameter from
- ``robots.txt`` in the form of a :func:`~collections.namedtuple`
- ``(requests, seconds)``. If there is no such parameter or it doesn't
- apply to the *useragent* specified or the ``robots.txt`` entry for this
- parameter has invalid syntax, return ``None``.
+ ``robots.txt`` as a :term:`named tuple` ``RequestRate(requests, seconds)``.
+ If there is no such parameter or it doesn't apply to the *useragent*
+ specified or the ``robots.txt`` entry for this parameter has invalid
+ syntax, return ``None``.
.. versionadded:: 3.6