From 8c4f0d68cc87186cf43ae4ed54a8cb249b1a17fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=84=AD=E5=AE=87=E8=BE=B0?= Date: Wed, 17 Jan 2024 15:23:43 +0800 Subject: [PATCH] fix: fix some words and render problem --- library/unittest.mock.po | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/library/unittest.mock.po b/library/unittest.mock.po index 7a63bb94a8..77d0266b20 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-12-16 00:03+0000\n" -"PO-Revision-Date: 2024-01-12 08:51+0800\n" +"PO-Revision-Date: 2024-01-17 15:22+0800\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -811,8 +811,8 @@ msgid "" msgstr "" "這適用於 :meth:`~Mock.assert_called_with`、:meth:`~Mock." "assert_called_once_with`、:meth:`~Mock.assert_has_calls` 和 :meth:`~Mock." -"assert_any_call`。在使用 :ref:`auto-speccing` ,它還適用於 mock 物件的方法呼" -"叫。" +"assert_any_call`。在使用 :ref:`auto-speccing` 時,它還適用於 mock 物件的方法" +"呼叫。" #: ../../library/unittest.mock.rst:817 msgid "Added signature introspection on specced and autospecced mock objects." @@ -1129,9 +1129,9 @@ msgid "" "creation time. There are two alternatives. One option is to use :meth:`~Mock." "configure_mock`::" msgstr "" -"由於 \"name\" 是傳遞給 :class:`Mock` 建構函式的引數,如果你想讓你的 mock 物件擁" -"有 \"name\" 屬性,你不能在建立時直接傳遞它。有兩種替代方法。其中一個選擇是使" -"用 :meth:`~Mock.configure_mock`: ::" +"由於 \"name\" 是傳遞給 :class:`Mock` 建構函式的引數,如果你想讓你的 mock 物件" +"擁有 \"name\" 屬性,你不能在建立時直接傳遞它。有兩種替代方法。其中一個選擇是" +"使用 :meth:`~Mock.configure_mock`: ::" #: ../../library/unittest.mock.rst:1258 msgid "" @@ -1187,8 +1187,8 @@ msgid "" msgstr "" "唯一的例外是魔術方法和屬性(具有前後雙底線)。Mock 不會建立這些,而是會引發 :" "exc:`AttributeError`。這是因為直譯器通常會隱式地要求這些方法,在期望得到一個" -"魔術方法卻獲得一個新的 Mock 物件時,會讓直譯器*非常*困惑。如果你需要魔術方法" -"的支援,請參閱\\ :ref:`魔術方法 `。" +"魔術方法卻獲得一個新的 Mock 物件時,會讓直譯器\\ *非常*\\ 困惑。如果你需要魔" +"術方法的支援,請參閱\\ :ref:`魔術方法 `。" #: ../../library/unittest.mock.rst:1323 msgid "The patchers" @@ -1266,7 +1266,7 @@ msgid "" "In addition you can pass ``spec=True`` or ``spec_set=True``, which causes " "patch to pass in the object being mocked as the spec/spec_set object." msgstr "" -"此外,你還可以傳遞 ``spec=True``或 ``spec_set=True``,這將導致 patch 將被 " +"此外,你還可以傳遞 ``spec=True`` 或 ``spec_set=True``,這將導致 patch 將被 " "mock 的物件作為 spec/spec_set 物件傳遞。" #: ../../library/unittest.mock.rst:1365 @@ -1352,9 +1352,9 @@ msgid "" "\"as\" then the patched object will be bound to the name after the \"as\"; " "very useful if :func:`patch` is creating a mock object for you." msgstr "" -"透過 with 陳述式,Patch 可以做為情境管理器使用。 patch 適用於 with 陳述式之後" -"的縮排區塊。 如果你使用 \"as\",則被 patch 的物件將被綁定到 \"as\" 後面的名" -"稱; 如果 :func:`patch` 正在為你建立一個 mock 物件,這會非常有用。" +"透過 with 陳述式,Patch 可以做為情境管理器使用。patch 適用於 with 陳述式之後" +"的縮排區塊。如果你使用 \"as\",則被 patch 的物件將被綁定到 \"as\" 後面的名" +"稱;如果 :func:`patch` 正在為你建立一個 mock 物件,這會非常有用。" #: ../../library/unittest.mock.rst:1408 msgid "" @@ -1362,9 +1362,9 @@ msgid "" "class:`AsyncMock` if the patched object is asynchronous, to :class:" "`MagicMock` otherwise or to *new_callable* if specified." msgstr "" -":func:`patch` 接受任意的關鍵字引數。 如果被 patch 的物件是非同步的,這些將會" -"被傳遞給 :class:`AsyncMock`,如果是同步的則會傳遞給 :class:`MagicMock`,或如" -"果指定了 *new_callable*,則傳遞給它。" +":func:`patch` 接受任意的關鍵字引數。如果被 patch 的物件是非同步的,這些將會被" +"傳遞給 :class:`AsyncMock`,如果是同步的則會傳遞給 :class:`MagicMock`,或如果" +"指定了 *new_callable*,則傳遞給它。" #: ../../library/unittest.mock.rst:1412 msgid "" @@ -1405,8 +1405,8 @@ msgid "" "To configure return values on methods of *instances* on the patched class " "you must do this on the :attr:`return_value`. For example::" msgstr "" -"若要配置被 patch 的類別的\\ *實例*\\ 方法的回傳值,你必須在 :attr:`return_value` 上" -"進行配置。 例如: ::" +"若要配置被 patch 的類別的\\ *實例*\\ 方法的回傳值,你必須在 :attr:" +"`return_value` 上進行配置。 例如: ::" #: ../../library/unittest.mock.rst:1447 msgid ""