https://github.com/python/cpython/commit/fddd858810f8ad39637a2406678e2b3efe822493
commit: fddd858810f8ad39637a2406678e2b3efe822493
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-02-04T11:36:34Z
summary:

[3.14] gh-141444: Replace dead URL in urllib.robotparser example (GH-144443) 
(#144464)

Co-authored-by: kovan <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>

files:
M Doc/library/urllib.robotparser.rst

diff --git a/Doc/library/urllib.robotparser.rst 
b/Doc/library/urllib.robotparser.rst
index 674f646c633bbd..ba719ae084e7e0 100644
--- a/Doc/library/urllib.robotparser.rst
+++ b/Doc/library/urllib.robotparser.rst
@@ -91,16 +91,16 @@ class::
 
    >>> import urllib.robotparser
    >>> rp = urllib.robotparser.RobotFileParser()
-   >>> rp.set_url("http://www.musi-cal.com/robots.txt";)
+   >>> rp.set_url("http://www.pythontest.net/robots.txt";)
    >>> rp.read()
    >>> rrate = rp.request_rate("*")
    >>> rrate.requests
-   3
+   1
    >>> rrate.seconds
-   20
+   1
    >>> rp.crawl_delay("*")
    6
-   >>> rp.can_fetch("*", 
"http://www.musi-cal.com/cgi-bin/search?city=San+Francisco";)
-   False
-   >>> rp.can_fetch("*", "http://www.musi-cal.com/";)
+   >>> rp.can_fetch("*", "http://www.pythontest.net/";)
    True
+   >>> rp.can_fetch("*", "http://www.pythontest.net/no-robots-here/";)
+   False

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to