summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-11-23 23:40:26 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2017-11-23 23:40:26 (GMT)
commit3df02dbc8e197053105f9dffeae40b04ec66766e (patch)
tree81997c8cf3814de49d129bc0d79f4df84af659e9 /Doc
parent0858495a50e19defde786a4ec050ec182e920f46 (diff)
downloadcpython-3df02dbc8e197053105f9dffeae40b04ec66766e.zip
cpython-3df02dbc8e197053105f9dffeae40b04ec66766e.tar.gz
cpython-3df02dbc8e197053105f9dffeae40b04ec66766e.tar.bz2
bpo-31325: Fix usage of namedtuple in RobotFileParser.parse() (#4529)
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