Skip to content

Commit 97fa0ae

Browse files
[po] auto sync
1 parent d11af63 commit 97fa0ae

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

library/functions.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# Shengjing Zhu <zsj950618@gmail.com>, 2021
1616
# ww song <sww4718168@gmail.com>, 2021
1717
# belingud <1170202353@qq.com>, 2021
18-
# Freesand Leo <yuqinju@163.com>, 2021
1918
# Dai Xu <daixu61@hotmail.com>, 2021
19+
# Freesand Leo <yuqinju@163.com>, 2022
2020
#
2121
#, fuzzy
2222
msgid ""
@@ -25,7 +25,7 @@ msgstr ""
2525
"Report-Msgid-Bugs-To: \n"
2626
"POT-Creation-Date: 2021-08-10 13:16+0000\n"
2727
"PO-Revision-Date: 2021-06-28 01:06+0000\n"
28-
"Last-Translator: Dai Xu <daixu61@hotmail.com>, 2021\n"
28+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2022\n"
2929
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
3030
"MIME-Version: 1.0\n"
3131
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1181,8 +1181,8 @@ msgid ""
11811181
"Pass an explicit *locals* dictionary if you need to see effects of the code "
11821182
"on *locals* after function :func:`exec` returns."
11831183
msgstr ""
1184-
"默认情况下,*locals* 的行为如下面 :func:`locals` 函数描述的一样:不要试图改变默认的 *locals* 字典。如果您想在 "
1185-
":func:`exec` 函数返回时知道代码对 *locals* 的变动,请明确地传递 *locals* 字典。"
1184+
"默认情况下,*locals* 的行为如下面 :func:`locals` 函数描述的一样:不要试图改变默认的 *locals* 字典。 如果您需要在 "
1185+
":func:`exec` 函数返回时查看代码对 *locals* 的影响,请明确地传递 *locals* 字典。"
11861186

11871187
#: ../../library/functions.rst:603
11881188
msgid ""

library/unittest.mock.po

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,26 +559,28 @@ msgid ""
559559
" to be raised, or a value to be returned from the call to the mock "
560560
"(:data:`DEFAULT` handling is identical to the function case)."
561561
msgstr ""
562+
"如果你传入一个可迭代对象,它会被用来获取一个在每次调用时必须产生一个值的迭代器。 这个值可以是一个要被引发的异常实例,或是一个要从该调用返回给 mock"
563+
" 的值 (:data:`DEFAULT` 处理与函数的情况一致)。"
562564

563565
#: ../../library/unittest.mock.rst:561
564566
msgid ""
565567
"An example of a mock that raises an exception (to test exception handling of"
566568
" an API):"
567-
msgstr ""
569+
msgstr "一个引发异常(来测试 API 的异常处理)的 mock 的示例:"
568570

569571
#: ../../library/unittest.mock.rst:571
570572
msgid "Using :attr:`side_effect` to return a sequence of values:"
571-
msgstr ""
573+
msgstr "使用 :attr:`side_effect` 来返回包含多个值的序列:"
572574

573575
#: ../../library/unittest.mock.rst:578
574576
msgid "Using a callable:"
575-
msgstr ""
577+
msgstr "使用一个可调用对象:"
576578

577579
#: ../../library/unittest.mock.rst:588
578580
msgid ""
579581
":attr:`side_effect` can be set in the constructor. Here's an example that "
580582
"adds one to the value the mock is called with and returns it:"
581-
msgstr ""
583+
msgstr ":attr:`side_effect` 可以在构造器中设置。 下面是在 mock 被调用时增加一个该属性值并返回它的例子:"
582584

583585
#: ../../library/unittest.mock.rst:598
584586
msgid "Setting :attr:`side_effect` to ``None`` clears it:"

0 commit comments

Comments
 (0)