Skip to content

Commit 7d74b88

Browse files
sync with cpython cf173261
1 parent 197899f commit 7d74b88

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

library/http.server.po

+14-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-01-23 00:09+0000\n"
10+
"POT-Creation-Date: 2022-07-02 00:16+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:03+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -32,8 +32,8 @@ msgstr ""
3232

3333
#: ../../library/http.server.rst:22
3434
msgid ""
35-
":mod:`http.server` is not recommended for production. It only implements "
36-
"basic security checks."
35+
":mod:`http.server` is not recommended for production. It only implements :"
36+
"ref:`basic security checks <http.server-security>`."
3737
msgstr ""
3838

3939
#: ../../library/http.server.rst:25
@@ -586,3 +586,14 @@ msgid ""
586586
":class:`CGIHTTPRequestHandler` can be enabled in the command line by passing "
587587
"the ``--cgi`` option::"
588588
msgstr ""
589+
590+
#: ../../library/http.server.rst:495
591+
msgid "Security Considerations"
592+
msgstr ""
593+
594+
#: ../../library/http.server.rst:499
595+
msgid ""
596+
":class:`SimpleHTTPRequestHandler` will follow symbolic links when handling "
597+
"requests, this makes it possible for files outside of the specified "
598+
"directory to be served."
599+
msgstr ""

library/queue.po

+12-12
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-04-15 00:13+0000\n"
10+
"POT-Creation-Date: 2022-07-02 00:16+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:08+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -189,7 +189,7 @@ msgid ""
189189
"`KeyboardInterrupt`."
190190
msgstr ""
191191

192-
#: ../../library/queue.rst:161 ../../library/queue.rst:267
192+
#: ../../library/queue.rst:161 ../../library/queue.rst:268
193193
msgid "Equivalent to ``get(False)``."
194194
msgstr ""
195195

@@ -236,43 +236,43 @@ msgstr ""
236236
msgid "Example of how to wait for enqueued tasks to be completed::"
237237
msgstr ""
238238

239-
#: ../../library/queue.rst:217
239+
#: ../../library/queue.rst:218
240240
msgid "SimpleQueue Objects"
241241
msgstr "SimpleQueue 物件"
242242

243-
#: ../../library/queue.rst:219
243+
#: ../../library/queue.rst:220
244244
msgid ""
245245
":class:`SimpleQueue` objects provide the public methods described below."
246246
msgstr ""
247247

248-
#: ../../library/queue.rst:223
248+
#: ../../library/queue.rst:224
249249
msgid ""
250250
"Return the approximate size of the queue. Note, qsize() > 0 doesn't "
251251
"guarantee that a subsequent get() will not block."
252252
msgstr ""
253253

254-
#: ../../library/queue.rst:229
254+
#: ../../library/queue.rst:230
255255
msgid ""
256256
"Return ``True`` if the queue is empty, ``False`` otherwise. If empty() "
257257
"returns ``False`` it doesn't guarantee that a subsequent call to get() will "
258258
"not block."
259259
msgstr ""
260260

261-
#: ../../library/queue.rst:236
261+
#: ../../library/queue.rst:237
262262
msgid ""
263263
"Put *item* into the queue. The method never blocks and always succeeds "
264264
"(except for potential low-level errors such as failure to allocate memory). "
265265
"The optional args *block* and *timeout* are ignored and only provided for "
266266
"compatibility with :meth:`Queue.put`."
267267
msgstr ""
268268

269-
#: ../../library/queue.rst:251
269+
#: ../../library/queue.rst:252
270270
msgid ""
271271
"Equivalent to ``put(item, block=False)``, provided for compatibility with :"
272272
"meth:`Queue.put_nowait`."
273273
msgstr ""
274274

275-
#: ../../library/queue.rst:257
275+
#: ../../library/queue.rst:258
276276
msgid ""
277277
"Remove and return an item from the queue. If optional args *block* is true "
278278
"and *timeout* is ``None`` (the default), block if necessary until an item is "
@@ -283,17 +283,17 @@ msgid ""
283283
"ignored in that case)."
284284
msgstr ""
285285

286-
#: ../../library/queue.rst:274
286+
#: ../../library/queue.rst:275
287287
msgid "Class :class:`multiprocessing.Queue`"
288288
msgstr ":class:`multiprocessing.Queue` 類型"
289289

290-
#: ../../library/queue.rst:273
290+
#: ../../library/queue.rst:274
291291
msgid ""
292292
"A queue class for use in a multi-processing (rather than multi-threading) "
293293
"context."
294294
msgstr ""
295295

296-
#: ../../library/queue.rst:276
296+
#: ../../library/queue.rst:277
297297
msgid ""
298298
":class:`collections.deque` is an alternative implementation of unbounded "
299299
"queues with fast atomic :meth:`~collections.deque.append` and :meth:"

library/security_warnings.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
10+
"POT-Creation-Date: 2022-07-02 00:16+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -45,7 +45,8 @@ msgstr ""
4545
#: ../../library/security_warnings.rst:16
4646
msgid ""
4747
":mod:`http.server` is not suitable for production use, only implementing "
48-
"basic security checks"
48+
"basic security checks. See the :ref:`security considerations <http.server-"
49+
"security>`."
4950
msgstr ""
5051

5152
#: ../../library/security_warnings.rst:18

0 commit comments

Comments
 (0)