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

Skip to content

Commit ef59d5b

Browse files
[po] auto sync
1 parent 2dd7d12 commit ef59d5b

6 files changed

Lines changed: 6302 additions & 6291 deletions

File tree

library/asyncio-dev.po

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.8\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2020-06-23 14:18+0000\n"
18+
"POT-Creation-Date: 2020-09-05 14:59+0000\n"
1919
"PO-Revision-Date: 2020-05-30 11:56+0000\n"
2020
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
2121
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -189,19 +189,32 @@ msgstr ""
189189
":class:`concurrent.futures.ThreadPoolExecutor` "
190190
"一起使用,用于在一个不同的操作系统线程中执行阻塞代码,并避免阻塞运行事件循环的那个操作系统线程。"
191191

192-
#: ../../library/asyncio-dev.rst:114
192+
#: ../../library/asyncio-dev.rst:110
193+
msgid ""
194+
"There is currently no way to schedule coroutines or callbacks directly from "
195+
"a different process (such as one started with :mod:`multiprocessing`). The "
196+
":ref:`Event Loop Methods <asyncio-event-loop>` section lists APIs that can "
197+
"read from pipes and watch file descriptors without blocking the event loop. "
198+
"In addition, asyncio's :ref:`Subprocess <asyncio-subprocess>` APIs provide a"
199+
" way to start a process and communicate with it from the event loop. Lastly,"
200+
" the aforementioned :meth:`loop.run_in_executor` method can also be used "
201+
"with a :class:`concurrent.futures.ProcessPoolExecutor` to execute code in a "
202+
"different process."
203+
msgstr ""
204+
205+
#: ../../library/asyncio-dev.rst:124
193206
msgid "Running Blocking Code"
194207
msgstr "运行阻塞的代码"
195208

196-
#: ../../library/asyncio-dev.rst:116
209+
#: ../../library/asyncio-dev.rst:126
197210
msgid ""
198211
"Blocking (CPU-bound) code should not be called directly. For example, if a "
199212
"function performs a CPU-intensive calculation for 1 second, all concurrent "
200213
"asyncio Tasks and IO operations would be delayed by 1 second."
201214
msgstr ""
202215
"不应该直接调用阻塞( CPU 绑定)代码。例如,如果一个函数执行1秒的 CPU 密集型计算,那么所有并发异步任务和 IO 操作都将延迟1秒。"
203216

204-
#: ../../library/asyncio-dev.rst:121
217+
#: ../../library/asyncio-dev.rst:131
205218
msgid ""
206219
"An executor can be used to run a task in a different thread or even in a "
207220
"different process to avoid blocking the OS thread with the event loop. See "
@@ -210,27 +223,27 @@ msgstr ""
210223
"可以用执行器在不同的线程甚至不同的进程中运行任务,以避免使用事件循环阻塞 OS 线程。 请参阅 :meth:`loop.run_in_executor`"
211224
" 方法了解详情。"
212225

213-
#: ../../library/asyncio-dev.rst:130
226+
#: ../../library/asyncio-dev.rst:140
214227
msgid "Logging"
215228
msgstr "日志记录"
216229

217-
#: ../../library/asyncio-dev.rst:132
230+
#: ../../library/asyncio-dev.rst:142
218231
msgid ""
219232
"asyncio uses the :mod:`logging` module and all logging is performed via the "
220233
"``\"asyncio\"`` logger."
221234
msgstr "asyncio使用 :mod:`logging` 模块,所有日志记录都是通过 ``\"asyncio\"`` logger执行的。"
222235

223-
#: ../../library/asyncio-dev.rst:135
236+
#: ../../library/asyncio-dev.rst:145
224237
msgid ""
225238
"The default log level is :py:data:`logging.INFO`, which can be easily "
226239
"adjusted::"
227240
msgstr "默认日志级别是 :py:data:`logging.INFO` 。可以很容易地调整::"
228241

229-
#: ../../library/asyncio-dev.rst:144
242+
#: ../../library/asyncio-dev.rst:154
230243
msgid "Detect never-awaited coroutines"
231244
msgstr "检测 never-awaited 协同程序"
232245

233-
#: ../../library/asyncio-dev.rst:146
246+
#: ../../library/asyncio-dev.rst:156
234247
msgid ""
235248
"When a coroutine function is called, but not awaited (e.g. ``coro()`` "
236249
"instead of ``await coro()``) or the coroutine is not scheduled with "
@@ -239,25 +252,25 @@ msgstr ""
239252
"当协程函数被调用而不是被等待时 (即执行 ``coro()`` 而不是 ``await coro()``) 或者协程没有通过 "
240253
":meth:`asyncio.create_task` 被排入计划日程,asyncio 将会发出一条 :exc:`RuntimeWarning`::"
241254

242-
#: ../../library/asyncio-dev.rst:161 ../../library/asyncio-dev.rst:206
255+
#: ../../library/asyncio-dev.rst:171 ../../library/asyncio-dev.rst:216
243256
msgid "Output::"
244257
msgstr "输出::"
245258

246-
#: ../../library/asyncio-dev.rst:166 ../../library/asyncio-dev.rst:222
259+
#: ../../library/asyncio-dev.rst:176 ../../library/asyncio-dev.rst:232
247260
msgid "Output in debug mode::"
248261
msgstr "调试模式的输出::"
249262

250-
#: ../../library/asyncio-dev.rst:179
263+
#: ../../library/asyncio-dev.rst:189
251264
msgid ""
252265
"The usual fix is to either await the coroutine or call the "
253266
":meth:`asyncio.create_task` function::"
254267
msgstr "通常的修复方法是等待协程或者调用 :meth:`asyncio.create_task` 函数::"
255268

256-
#: ../../library/asyncio-dev.rst:187
269+
#: ../../library/asyncio-dev.rst:197
257270
msgid "Detect never-retrieved exceptions"
258271
msgstr "检测就再也没异常"
259272

260-
#: ../../library/asyncio-dev.rst:189
273+
#: ../../library/asyncio-dev.rst:199
261274
msgid ""
262275
"If a :meth:`Future.set_exception` is called but the Future object is never "
263276
"awaited on, the exception would never be propagated to the user code. In "
@@ -267,11 +280,11 @@ msgstr ""
267280
"如果调用 :meth:`Future.set_exception` ,但不等待 Future 对象,将异常传播到用户代码。在这种情况下,当 Future"
268281
" 对象被垃圾收集时,asyncio将发出一条日志消息。"
269282

270-
#: ../../library/asyncio-dev.rst:194
283+
#: ../../library/asyncio-dev.rst:204
271284
msgid "Example of an unhandled exception::"
272285
msgstr "未处理异常的例子::"
273286

274-
#: ../../library/asyncio-dev.rst:217
287+
#: ../../library/asyncio-dev.rst:227
275288
msgid ""
276289
":ref:`Enable the debug mode <asyncio-debug-mode>` to get the traceback where"
277290
" the task was created::"

library/glob.po

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.8\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2020-02-09 12:40+0000\n"
17+
"POT-Creation-Date: 2020-09-05 14:59+0000\n"
1818
"PO-Revision-Date: 2020-05-30 12:03+0000\n"
1919
"Last-Translator: ppcfish <[email protected]>, 2020\n"
2020
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -67,14 +67,12 @@ msgid ""
6767
"absolute (like :file:`/usr/src/Python-1.5/Makefile`) or relative (like "
6868
":file:`../../Tools/\\*/\\*.gif`), and can contain shell-style wildcards. "
6969
"Broken symlinks are included in the results (as in the shell). Whether or "
70-
"not the results are sorted depends on the file system."
70+
"not the results are sorted depends on the file system. If a file that "
71+
"satisfies conditions is removed or added during the call of this function, "
72+
"whether a path name for that file be included is unspecified."
7173
msgstr ""
72-
"返回匹配 *pathname* 的可能为空的路径名列表,其中的元素必须为包含一个路径信息的字符串。 *pathname* 可以是绝对路径 (如 "
73-
":file:`/usr/src/Python-1.5/Makefile`) 或相对路径 (如 "
74-
":file:`../../Tools/\\*/\\*.gif`),并且可包含 shell 风格的通配符。 结果也将包含无效的符号链接 (与在 shell"
75-
" 中一致)。 结果是否排序取决于具体文件系统。"
7674

77-
#: ../../library/glob.rst:51
75+
#: ../../library/glob.rst:53
7876
msgid ""
7977
"If *recursive* is true, the pattern \"``**``\" will match any files and zero"
8078
" or more directories, subdirectories and symbolic links to directories. If "
@@ -84,30 +82,30 @@ msgstr ""
8482
"如果 *recursive* 为真值,则模式 \"``**``\" 将匹配目录中的任何文件以及零个或多个目录、子目录和符号链接。 如果模式加了一个 "
8583
":data:`os.sep` 或 :data:`os.altsep` 则将不匹配文件。"
8684

87-
#: ../../library/glob.rst:57 ../../library/glob.rst:71
85+
#: ../../library/glob.rst:59 ../../library/glob.rst:73
8886
msgid ""
8987
"Raises an :ref:`auditing event <auditing>` ``glob.glob`` with arguments "
9088
"``pathname``, ``recursive``."
9189
msgstr ""
9290
"引发一个 :ref:`审计事件 <auditing>` ``glob.glob`` 附带参数 ``pathname``, ``recursive``。"
9391

94-
#: ../../library/glob.rst:59
92+
#: ../../library/glob.rst:61
9593
msgid ""
9694
"Using the \"``**``\" pattern in large directory trees may consume an "
9795
"inordinate amount of time."
9896
msgstr "在一个较大的目录树中使用 \"``**``\" 模式可能会消耗非常多的时间。"
9997

100-
#: ../../library/glob.rst:62
98+
#: ../../library/glob.rst:64
10199
msgid "Support for recursive globs using \"``**``\"."
102100
msgstr "支持使用 \"``**``\" 的递归 glob。"
103101

104-
#: ../../library/glob.rst:68
102+
#: ../../library/glob.rst:70
105103
msgid ""
106104
"Return an :term:`iterator` which yields the same values as :func:`glob` "
107105
"without actually storing them all simultaneously."
108106
msgstr "返回一个 :term:`iterator`,它会产生与 :func:`glob` 相同的结果,但不会实际地同时保存它们。"
109107

110-
#: ../../library/glob.rst:76
108+
#: ../../library/glob.rst:78
111109
msgid ""
112110
"Escape all special characters (``'?'``, ``'*'`` and ``'['``). This is useful"
113111
" if you want to match an arbitrary literal string that may have special "
@@ -119,7 +117,7 @@ msgstr ""
119117
"drive/UNC 共享点中的特殊字符不会被转义,例如在 Windows 上 ``escape('//?/c:/Quo vadis?.txt')`` "
120118
"将返回 ``'//?/c:/Quo vadis[?].txt'``。"
121119

122-
#: ../../library/glob.rst:85
120+
#: ../../library/glob.rst:87
123121
msgid ""
124122
"For example, consider a directory containing the following files: "
125123
":file:`1.gif`, :file:`2.txt`, :file:`card.gif` and a subdirectory "
@@ -131,7 +129,7 @@ msgstr ""
131129
":file:`sub` 其中只包含一个文件 :file:`3.txt`. :func:`glob` 将产生如下结果。 "
132130
"请注意路径的任何开头部分都将被保留。::"
133131

134-
#: ../../library/glob.rst:103
132+
#: ../../library/glob.rst:105
135133
msgid ""
136134
"If the directory contains files starting with ``.`` they won't be matched by"
137135
" default. For example, consider a directory containing :file:`card.gif` and "
@@ -140,10 +138,10 @@ msgstr ""
140138
"如果目录包含以 ``.`` 打头的文件,它们默认将不会被匹配。 例如,考虑一个包含 :file:`card.gif` 和 "
141139
":file:`.card.gif` 的目录::"
142140

143-
#: ../../library/glob.rst:115
141+
#: ../../library/glob.rst:117
144142
msgid "Module :mod:`fnmatch`"
145143
msgstr "模块 :mod:`fnmatch`"
146144

147-
#: ../../library/glob.rst:116
145+
#: ../../library/glob.rst:118
148146
msgid "Shell-style filename (not path) expansion"
149147
msgstr "Shell 风格文件名(而非路径)扩展"

0 commit comments

Comments
 (0)