Skip to content

Commit 8c1551f

Browse files
[po] auto sync
1 parent 578e716 commit 8c1551f

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "99.91%", "updated_at": "2026-02-05T16:08:29Z"}
1+
{"translation": "99.91%", "updated_at": "2026-02-06T13:19:37Z"}

library/urllib.robotparser.po

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8-
# Freesand Leo <yuqinju@163.com>, 2025
8+
# Freesand Leo <yuqinju@163.com>, 2026
99
#
1010
#, fuzzy
1111
msgid ""
@@ -14,7 +14,7 @@ msgstr ""
1414
"Report-Msgid-Bugs-To: \n"
1515
"POT-Creation-Date: 2026-02-05 15:30+0000\n"
1616
"PO-Revision-Date: 2025-09-15 01:05+0000\n"
17-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2026\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1919
"MIME-Version: 1.0\n"
2020
"Content-Type: text/plain; charset=UTF-8\n"
@@ -134,6 +134,21 @@ msgid ""
134134
">>> rp.can_fetch(\"*\", \"http://www.pythontest.net/no-robots-here/\")\n"
135135
"False"
136136
msgstr ""
137+
">>> import urllib.robotparser\n"
138+
">>> rp = urllib.robotparser.RobotFileParser()\n"
139+
">>> rp.set_url(\"http://www.pythontest.net/robots.txt\")\n"
140+
">>> rp.read()\n"
141+
">>> rrate = rp.request_rate(\"*\")\n"
142+
">>> rrate.requests\n"
143+
"1\n"
144+
">>> rrate.seconds\n"
145+
"1\n"
146+
">>> rp.crawl_delay(\"*\")\n"
147+
"6\n"
148+
">>> rp.can_fetch(\"*\", \"http://www.pythontest.net/\")\n"
149+
"True\n"
150+
">>> rp.can_fetch(\"*\", \"http://www.pythontest.net/no-robots-here/\")\n"
151+
"False"
137152

138153
#: ../../library/urllib.robotparser.rst:12
139154
msgid "WWW"

0 commit comments

Comments
 (0)