Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6b6aae

Browse files
[po] auto sync
1 parent 9d0c1d9 commit e6b6aae

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

library/asyncio-eventloop.po

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ msgstr "传输文件"
10941094
#: ../../library/asyncio-eventloop.rst:736
10951095
msgid ""
10961096
"Send a *file* over a *transport*. Return the total number of bytes sent."
1097-
msgstr ""
1097+
msgstr "将 *file* 通过 *transport* 发送。 返回所发送的字节总数。"
10981098

10991099
#: ../../library/asyncio-eventloop.rst:739
11001100
msgid "The method uses high-performance :meth:`os.sendfile` if available."
@@ -1113,40 +1113,51 @@ msgid ""
11131113
" raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to "
11141114
"obtain the actual number of bytes sent."
11151115
msgstr ""
1116+
"*offset* 指明从何处开始读取文件。 如果指定了 *count*,它是要传输的字节总数而不再一直发送文件直至抵达 EOF。 "
1117+
"文件位置总是会被更新,即使此方法引发了错误,并可以使用 :meth:`file.tell() <io.IOBase.tell>` "
1118+
"来获取实际发送的字节总数。"
11161119

11171120
#: ../../library/asyncio-eventloop.rst:750
11181121
msgid ""
11191122
"*fallback* set to ``True`` makes asyncio to manually read and send the file "
11201123
"when the platform does not support the sendfile system call (e.g. Windows or"
11211124
" SSL socket on Unix)."
11221125
msgstr ""
1126+
"*fallback* 设为 ``True`` 会使得 asyncio 在平台不支持 sendfile 系统调用时手动读取并发送文件(例如 Windows"
1127+
" 或 Unix 上的 SSL 套接字)。"
11231128

11241129
#: ../../library/asyncio-eventloop.rst:754
11251130
msgid ""
11261131
"Raise :exc:`SendfileNotAvailableError` if the system does not support the "
11271132
"*sendfile* syscall and *fallback* is ``False``."
11281133
msgstr ""
1134+
"如果系统不支持 *sendfile* 系统调用且 *fallback* 为 ``False`` 则会引发 "
1135+
":exc:`SendfileNotAvailableError`。"
11291136

11301137
#: ../../library/asyncio-eventloop.rst:761
11311138
msgid "TLS Upgrade"
11321139
msgstr "TLS 升级"
11331140

11341141
#: ../../library/asyncio-eventloop.rst:767
11351142
msgid "Upgrade an existing transport-based connection to TLS."
1136-
msgstr ""
1143+
msgstr "将现有基于传输的连接升级到 TLS。"
11371144

11381145
#: ../../library/asyncio-eventloop.rst:769
11391146
msgid ""
11401147
"Return a new transport instance, that the *protocol* must start using "
11411148
"immediately after the *await*. The *transport* instance passed to the "
11421149
"*start_tls* method should never be used again."
11431150
msgstr ""
1151+
"返回一个新的传输实例,其中 *protocol* 必须在 *await* 之后立即开始使用。 传给 *start_tls* 方法的 "
1152+
"*transport* 实例应永远不会被再次使用。"
11441153

11451154
#: ../../library/asyncio-eventloop.rst:775
11461155
msgid ""
11471156
"*transport* and *protocol* instances that methods like "
11481157
":meth:`~loop.create_server` and :meth:`~loop.create_connection` return."
11491158
msgstr ""
1159+
"*transport* 和 *protocol* 实例的方法与 :meth:`~loop.create_server` 和 "
1160+
":meth:`~loop.create_connection` 所返回的类似。"
11501161

11511162
#: ../../library/asyncio-eventloop.rst:779
11521163
msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`."
@@ -1157,6 +1168,8 @@ msgid ""
11571168
"*server_side* pass ``True`` when a server-side connection is being upgraded "
11581169
"(like the one created by :meth:`~loop.create_server`)."
11591170
msgstr ""
1171+
"当服务端连接已升级时 (如 :meth:`~loop.create_server` 所创建的对象) *server_side* 会传入 "
1172+
"``True``。"
11601173

11611174
#: ../../library/asyncio-eventloop.rst:784
11621175
msgid ""
@@ -1201,7 +1214,7 @@ msgstr "停止对文件描述符 *fd* 的写入可用性监视。"
12011214
msgid ""
12021215
"See also :ref:`Platform Support <asyncio-platform-support>` section for some"
12031216
" limitations of these methods."
1204-
msgstr ""
1217+
msgstr "另请查看 :ref:`平台支持 <asyncio-platform-support>` 一节了解以上方法的某些限制。"
12051218

12061219
#: ../../library/asyncio-eventloop.rst:825
12071220
msgid "Working with socket objects directly"
@@ -1215,12 +1228,16 @@ msgid ""
12151228
"some use cases when performance is not critical, and working with "
12161229
":class:`~socket.socket` objects directly is more convenient."
12171230
msgstr ""
1231+
"通常,使用基于传输的 API 的协议实现,例如 :meth:`loop.create_connection` 和 "
1232+
":meth:`loop.create_server` 比直接使用套接字的实现更快。 但是,在某些应用场景下性能并不非常重要,直接使用 "
1233+
":class:`~socket.socket` 对象会更方便。"
12181234

12191235
#: ../../library/asyncio-eventloop.rst:836
12201236
msgid ""
12211237
"Receive up to *nbytes* from *sock*. Asynchronous version of "
12221238
":meth:`socket.recv() <socket.socket.recv>`."
12231239
msgstr ""
1240+
"从 *sock* 接收至多 *nbytes*。 :meth:`socket.recv() <socket.socket.recv>` 的异步版本。"
12241241

12251242
#: ../../library/asyncio-eventloop.rst:839
12261243
msgid "Return the received data as a bytes object."
@@ -1241,6 +1258,8 @@ msgid ""
12411258
"releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this"
12421259
" is an ``async def`` method."
12431260
msgstr ""
1261+
"虽然这个方法总是被记录为协程方法,但它在 Python 3.7 之前的发行版中会返回一个 :class:`Future`。 从 Python 3.7 "
1262+
"开始它则是一个 ``async def`` 方法。"
12441263

12451264
#: ../../library/asyncio-eventloop.rst:850
12461265
msgid ""

0 commit comments

Comments
 (0)