Skip to content

Commit 28c3a8b

Browse files
[po] auto sync
1 parent d24069c commit 28c3a8b

File tree

10 files changed

+1767
-1954
lines changed

10 files changed

+1767
-1954
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "100.00%", "updated_at": "2025-10-05T00:42:41Z"}
1+
{"translation": "99.82%", "updated_at": "2025-10-05T15:13:41Z"}

deprecations/index.po

Lines changed: 64 additions & 68 deletions
Large diffs are not rendered by default.

deprecations/pending-removal-in-future.po

Lines changed: 64 additions & 68 deletions
Large diffs are not rendered by default.

library/asyncio-stream.po

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-08-25 14:20+0000\n"
14+
"POT-Creation-Date: 2025-10-05 14:11+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -41,7 +41,7 @@ msgid ""
4141
"Here is an example of a TCP echo client written using asyncio streams::"
4242
msgstr "下面是一个使用 asyncio streams 编写的 TCP echo 客户端示例::"
4343

44-
#: ../../library/asyncio-stream.rst:22 ../../library/asyncio-stream.rst:440
44+
#: ../../library/asyncio-stream.rst:22 ../../library/asyncio-stream.rst:441
4545
msgid ""
4646
"import asyncio\n"
4747
"\n"
@@ -146,7 +146,7 @@ msgstr "移除了 *loop* 形参。"
146146

147147
#: ../../library/asyncio-stream.rst:87 ../../library/asyncio-stream.rst:131
148148
#: ../../library/asyncio-stream.rst:167 ../../library/asyncio-stream.rst:202
149-
#: ../../library/asyncio-stream.rst:407
149+
#: ../../library/asyncio-stream.rst:408
150150
msgid "Added the *ssl_shutdown_timeout* parameter."
151151
msgstr "添加了 *ssl_shutdown_timeout* 形参。"
152152

@@ -407,92 +407,92 @@ msgid ""
407407
"until it can be sent."
408408
msgstr "此方法会尝试立即将 *data* 写入到下层的套接字。 如果写入失败,数据会被排入内部写缓冲队列直到可以被发送。"
409409

410-
#: ../../library/asyncio-stream.rst:319 ../../library/asyncio-stream.rst:334
410+
#: ../../library/asyncio-stream.rst:319
411+
msgid ""
412+
"The *data* buffer should be a bytes, bytearray, or C-contiguous one-"
413+
"dimensional memoryview object."
414+
msgstr ""
415+
416+
#: ../../library/asyncio-stream.rst:322 ../../library/asyncio-stream.rst:335
411417
msgid "The method should be used along with the ``drain()`` method::"
412418
msgstr "此方法应当与 ``drain()`` 方法一起使用::"
413419

414-
#: ../../library/asyncio-stream.rst:321
420+
#: ../../library/asyncio-stream.rst:324
415421
msgid ""
416422
"stream.write(data)\n"
417423
"await stream.drain()"
418424
msgstr ""
419425
"stream.write(data)\n"
420426
"await stream.drain()"
421427

422-
#: ../../library/asyncio-stream.rst:325
423-
msgid ""
424-
"The *data* buffer should be a C contiguous one-dimensional :term:`bytes-like"
425-
" object <bytes-like object>`."
426-
msgstr "*data* 缓冲区应该是一个 C 语言风格的连续一维 :term:`字节型对象 <bytes-like object>`。"
427-
428-
#: ../../library/asyncio-stream.rst:329
428+
#: ../../library/asyncio-stream.rst:330
429429
msgid ""
430430
"The method writes a list (or any iterable) of bytes to the underlying socket"
431431
" immediately. If that fails, the data is queued in an internal write buffer "
432432
"until it can be sent."
433433
msgstr "此方法会立即尝试将一个字节串列表(或任何可迭代对象)写入到下层的套接字。 如果写入失败,数据会被排入内部写缓冲队列直到可以被发送。"
434434

435-
#: ../../library/asyncio-stream.rst:336
435+
#: ../../library/asyncio-stream.rst:337
436436
msgid ""
437437
"stream.writelines(lines)\n"
438438
"await stream.drain()"
439439
msgstr ""
440440
"stream.writelines(lines)\n"
441441
"await stream.drain()"
442442

443-
#: ../../library/asyncio-stream.rst:341
443+
#: ../../library/asyncio-stream.rst:342
444444
msgid "The method closes the stream and the underlying socket."
445445
msgstr "此方法会关闭流以及下层的套接字。"
446446

447-
#: ../../library/asyncio-stream.rst:343
447+
#: ../../library/asyncio-stream.rst:344
448448
msgid ""
449449
"The method should be used, though not mandatory, along with the "
450450
"``wait_closed()`` method::"
451451
msgstr "此方法应当于 ``wait_closed()`` 方法一起使用,但这并非强制要求::"
452452

453-
#: ../../library/asyncio-stream.rst:346
453+
#: ../../library/asyncio-stream.rst:347
454454
msgid ""
455455
"stream.close()\n"
456456
"await stream.wait_closed()"
457457
msgstr ""
458458
"stream.close()\n"
459459
"await stream.wait_closed()"
460460

461-
#: ../../library/asyncio-stream.rst:351
461+
#: ../../library/asyncio-stream.rst:352
462462
msgid ""
463463
"Return ``True`` if the underlying transport supports the :meth:`write_eof` "
464464
"method, ``False`` otherwise."
465465
msgstr "如果下层的传输支持 :meth:`write_eof` 方法则返回 ``True``,否则返回 ``False``。"
466466

467-
#: ../../library/asyncio-stream.rst:356
467+
#: ../../library/asyncio-stream.rst:357
468468
msgid ""
469469
"Close the write end of the stream after the buffered write data is flushed."
470470
msgstr "在已缓冲的写入数据被刷新后关闭流的写入端。"
471471

472-
#: ../../library/asyncio-stream.rst:361
472+
#: ../../library/asyncio-stream.rst:362
473473
msgid "Return the underlying asyncio transport."
474474
msgstr "返回下层的 asyncio 传输。"
475475

476-
#: ../../library/asyncio-stream.rst:365
476+
#: ../../library/asyncio-stream.rst:366
477477
msgid ""
478478
"Access optional transport information; see "
479479
":meth:`BaseTransport.get_extra_info` for details."
480480
msgstr "访问可选的传输信息;详情参见 :meth:`BaseTransport.get_extra_info`。"
481481

482-
#: ../../library/asyncio-stream.rst:371
482+
#: ../../library/asyncio-stream.rst:372
483483
msgid ""
484484
"Wait until it is appropriate to resume writing to the stream. Example::"
485485
msgstr "等待直到可以适当地恢复写入到流。 示例::"
486486

487-
#: ../../library/asyncio-stream.rst:374
487+
#: ../../library/asyncio-stream.rst:375
488488
msgid ""
489489
"writer.write(data)\n"
490490
"await writer.drain()"
491491
msgstr ""
492492
"writer.write(data)\n"
493493
"await writer.drain()"
494494

495-
#: ../../library/asyncio-stream.rst:377
495+
#: ../../library/asyncio-stream.rst:378
496496
msgid ""
497497
"This is a flow control method that interacts with the underlying IO write "
498498
"buffer. When the size of the buffer reaches the high watermark, *drain()* "
@@ -503,25 +503,25 @@ msgstr ""
503503
"这是一个与下层的 IO 写缓冲区进行交互的流程控制方法。 当缓冲区大小达到最高水位(最大上限)时,*drain()* "
504504
"会阻塞直到缓冲区大小减少至最低水位以便恢复写入。 当没有要等待的数据时,:meth:`drain` 会立即返回。"
505505

506-
#: ../../library/asyncio-stream.rst:388
506+
#: ../../library/asyncio-stream.rst:389
507507
msgid "Upgrade an existing stream-based connection to TLS."
508508
msgstr "将现有基于流的连接升级到 TLS。"
509509

510-
#: ../../library/asyncio-stream.rst:390
510+
#: ../../library/asyncio-stream.rst:391
511511
msgid "Parameters:"
512512
msgstr "参数:"
513513

514-
#: ../../library/asyncio-stream.rst:392
514+
#: ../../library/asyncio-stream.rst:393
515515
msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`."
516516
msgstr "*sslcontext* :一个已经配置好的 :class:`~ssl.SSLContext` 实例。"
517517

518-
#: ../../library/asyncio-stream.rst:394
518+
#: ../../library/asyncio-stream.rst:395
519519
msgid ""
520520
"*server_hostname*: sets or overrides the host name that the target server's "
521521
"certificate will be matched against."
522522
msgstr "*server_hostname* :设置或者覆盖目标服务器证书中相对应的主机名。"
523523

524-
#: ../../library/asyncio-stream.rst:397
524+
#: ../../library/asyncio-stream.rst:398
525525
msgid ""
526526
"*ssl_handshake_timeout* is the time in seconds to wait for the TLS handshake"
527527
" to complete before aborting the connection. ``60.0`` seconds if ``None`` "
@@ -530,7 +530,7 @@ msgstr ""
530530
"*ssl_handshake_timeout* 是在放弃连接之前要等待 TLS 握手完成的秒数。 如为 ``None`` (默认值) 则使用 "
531531
"``60.0``。"
532532

533-
#: ../../library/asyncio-stream.rst:401
533+
#: ../../library/asyncio-stream.rst:402
534534
msgid ""
535535
"*ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown "
536536
"to complete before aborting the connection. ``30.0`` seconds if ``None`` "
@@ -539,35 +539,35 @@ msgstr ""
539539
"*ssl_shutdown_timeout* 是在放弃连接之前要等待 SSL 关闭完成的秒数。 如为 ``None`` (默认值) 则使用 "
540540
"``30.0``。"
541541

542-
#: ../../library/asyncio-stream.rst:413
542+
#: ../../library/asyncio-stream.rst:414
543543
msgid ""
544544
"Return ``True`` if the stream is closed or in the process of being closed."
545545
msgstr "如果流已被关闭或正在被关闭则返回 ``True``。"
546546

547-
#: ../../library/asyncio-stream.rst:421
547+
#: ../../library/asyncio-stream.rst:422
548548
msgid "Wait until the stream is closed."
549549
msgstr "等待直到流被关闭。"
550550

551-
#: ../../library/asyncio-stream.rst:423
551+
#: ../../library/asyncio-stream.rst:424
552552
msgid ""
553553
"Should be called after :meth:`close` to wait until the underlying connection"
554554
" is closed, ensuring that all data has been flushed before e.g. exiting the "
555555
"program."
556556
msgstr "应当在 :meth:`close` 之后调用以等待直到下层连接被关闭,确保所有数据在退出程序之前已刷新。"
557557

558-
#: ../../library/asyncio-stream.rst:431
558+
#: ../../library/asyncio-stream.rst:432
559559
msgid "Examples"
560560
msgstr "例子"
561561

562-
#: ../../library/asyncio-stream.rst:436
562+
#: ../../library/asyncio-stream.rst:437
563563
msgid "TCP echo client using streams"
564564
msgstr "使用流的 TCP 回显客户端"
565565

566-
#: ../../library/asyncio-stream.rst:438
566+
#: ../../library/asyncio-stream.rst:439
567567
msgid "TCP echo client using the :func:`asyncio.open_connection` function::"
568568
msgstr "使用 :func:`asyncio.open_connection` 函数的 TCP 回显客户端::"
569569

570-
#: ../../library/asyncio-stream.rst:462
570+
#: ../../library/asyncio-stream.rst:463
571571
msgid ""
572572
"The :ref:`TCP echo client protocol "
573573
"<asyncio_example_tcp_echo_client_protocol>` example uses the low-level "
@@ -576,15 +576,15 @@ msgstr ""
576576
"使用低层级 :meth:`loop.create_connection` 方法的 :ref:`TCP 回显客户端协议 "
577577
"<asyncio_example_tcp_echo_client_protocol>` 示例。"
578578

579-
#: ../../library/asyncio-stream.rst:469
579+
#: ../../library/asyncio-stream.rst:470
580580
msgid "TCP echo server using streams"
581581
msgstr "使用流的 TCP 回显服务器"
582582

583-
#: ../../library/asyncio-stream.rst:471
583+
#: ../../library/asyncio-stream.rst:472
584584
msgid "TCP echo server using the :func:`asyncio.start_server` function::"
585585
msgstr "TCP 回显服务器使用 :func:`asyncio.start_server` 函数::"
586586

587-
#: ../../library/asyncio-stream.rst:473
587+
#: ../../library/asyncio-stream.rst:474
588588
msgid ""
589589
"import asyncio\n"
590590
"\n"
@@ -644,7 +644,7 @@ msgstr ""
644644
"\n"
645645
"asyncio.run(main())"
646646

647-
#: ../../library/asyncio-stream.rst:505
647+
#: ../../library/asyncio-stream.rst:506
648648
msgid ""
649649
"The :ref:`TCP echo server protocol "
650650
"<asyncio_example_tcp_echo_server_protocol>` example uses the "
@@ -653,16 +653,16 @@ msgstr ""
653653
"使用 :meth:`loop.create_server` 方法的 :ref:`TCP 回显服务器协议 "
654654
"<asyncio_example_tcp_echo_server_protocol>` 示例。"
655655

656-
#: ../../library/asyncio-stream.rst:510
656+
#: ../../library/asyncio-stream.rst:511
657657
msgid "Get HTTP headers"
658658
msgstr "获取 HTTP 标头"
659659

660-
#: ../../library/asyncio-stream.rst:512
660+
#: ../../library/asyncio-stream.rst:513
661661
msgid ""
662662
"Simple example querying HTTP headers of the URL passed on the command line::"
663663
msgstr "查询命令行传入 URL 的 HTTP 标头的简单示例::"
664664

665-
#: ../../library/asyncio-stream.rst:514
665+
#: ../../library/asyncio-stream.rst:515
666666
msgid ""
667667
"import asyncio\n"
668668
"import urllib.parse\n"
@@ -736,33 +736,33 @@ msgstr ""
736736
"url = sys.argv[1]\n"
737737
"asyncio.run(print_http_headers(url))"
738738

739-
#: ../../library/asyncio-stream.rst:551
739+
#: ../../library/asyncio-stream.rst:552
740740
msgid "Usage::"
741741
msgstr "用法:"
742742

743-
#: ../../library/asyncio-stream.rst:553
743+
#: ../../library/asyncio-stream.rst:554
744744
msgid "python example.py http://example.com/path/page.html"
745745
msgstr "python example.py http://example.com/path/page.html"
746746

747-
#: ../../library/asyncio-stream.rst:555
747+
#: ../../library/asyncio-stream.rst:556
748748
msgid "or with HTTPS::"
749749
msgstr "或使用 HTTPS::"
750750

751-
#: ../../library/asyncio-stream.rst:557
751+
#: ../../library/asyncio-stream.rst:558
752752
msgid "python example.py https://example.com/path/page.html"
753753
msgstr "python example.py https://example.com/path/page.html"
754754

755-
#: ../../library/asyncio-stream.rst:563
755+
#: ../../library/asyncio-stream.rst:564
756756
msgid "Register an open socket to wait for data using streams"
757757
msgstr "注册一个打开的套接字以等待使用流的数据"
758758

759-
#: ../../library/asyncio-stream.rst:565
759+
#: ../../library/asyncio-stream.rst:566
760760
msgid ""
761761
"Coroutine waiting until a socket receives data using the "
762762
":func:`open_connection` function::"
763763
msgstr "使用 :func:`open_connection` 函数实现等待直到套接字接收到数据的协程::"
764764

765-
#: ../../library/asyncio-stream.rst:568
765+
#: ../../library/asyncio-stream.rst:569
766766
msgid ""
767767
"import asyncio\n"
768768
"import socket\n"
@@ -824,7 +824,7 @@ msgstr ""
824824
"\n"
825825
"asyncio.run(wait_for_data())"
826826

827-
#: ../../library/asyncio-stream.rst:600
827+
#: ../../library/asyncio-stream.rst:601
828828
msgid ""
829829
"The :ref:`register an open socket to wait for data using a protocol "
830830
"<asyncio_example_create_connection>` example uses a low-level protocol and "
@@ -833,7 +833,7 @@ msgstr ""
833833
"使用低层级协议以及 :meth:`loop.create_connection` 方法的 :ref:`注册一个打开的套接字以等待使用协议的数据 "
834834
"<asyncio_example_create_connection>` 示例。"
835835

836-
#: ../../library/asyncio-stream.rst:604
836+
#: ../../library/asyncio-stream.rst:605
837837
msgid ""
838838
"The :ref:`watch a file descriptor for read events "
839839
"<asyncio_example_watch_fd>` example uses the low-level "

0 commit comments

Comments
 (0)