Skip to content

Commit 1f672a1

Browse files
sync with cpython 7762de25
1 parent 1ac1d35 commit 1f672a1

File tree

2 files changed

+159
-157
lines changed

2 files changed

+159
-157
lines changed

library/warnings.po

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.13\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2024-11-03 00:14+0000\n"
12+
"POT-Creation-Date: 2025-08-07 00:18+0000\n"
1313
"PO-Revision-Date: 2025-07-14 13:00+0800\n"
1414
"Last-Translator: Dr-XYZ <[email protected]>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -406,8 +406,8 @@ msgid ""
406406
"If a warning is reported and doesn't match any registered filter then the "
407407
"\"default\" action is applied (hence its name)."
408408
msgstr ""
409-
"如果一個警告被回報且不匹配任何已註冊的過濾器,則會套用 \"default\" 動作(因此得"
410-
")。"
409+
"如果一個警告被回報且不匹配任何已註冊的過濾器,則會套用 \"default\" 動作(因此"
410+
"得名)。"
411411

412412
#: ../../library/warnings.rst:185
413413
msgid "Repeated Warning Suppression Criteria"
@@ -937,9 +937,10 @@ msgstr ""
937937
" lower.one_way(**kw)"
938938

939939
#: ../../library/warnings.rst:453
940+
#, fuzzy
940941
msgid ""
941942
"This makes the warning refer to both the ``example.lower.one_way()`` and "
942-
"``package.higher.another_way()`` call sites only from calling code living "
943+
"``example.higher.another_way()`` call sites only from calling code living "
943944
"outside of ``example`` package."
944945
msgstr ""
945946
"這使得警告只會從存在於 ``example`` 套件之外的呼叫程式碼中,指向 ``example."
@@ -983,8 +984,9 @@ msgid ""
983984
"displaying source for modules found in zipfiles or other non-filesystem "
984985
"import sources)."
985986
msgstr ""
986-
"*module_globals*\\ (如果提供)應該是發出警告的程式碼所使用的全域命名空間。(此"
987-
"引數用於支援顯示在 zip 檔案或其他非檔案系統引入來源中找到的模組的原始碼)。"
987+
"*module_globals*\\ (如果提供)應該是發出警告的程式碼所使用的全域命名空間。"
988+
"(此引數用於支援顯示在 zip 檔案或其他非檔案系統引入來源中找到的模組的原始"
989+
"碼)。"
988990

989991
#: ../../library/warnings.rst:486
990992
msgid "Add the *source* parameter."
@@ -1124,9 +1126,10 @@ msgid ""
11241126
msgstr ""
11251127
"由 *category* 指定的警告將在使用已棄用物件時於 runtime 發出。對於函式,這發生"
11261128
"在呼叫時;對於類別,發生在實例化和建立子類別時。如果 *category* 是 ``None``,"
1127-
"則在 runtime 不會發出警告。*stacklevel* 決定了警告發出的位置。如果它是 ``1``\\ "
1128-
"(預設值),警告會在已棄用物件的直接呼叫者處發出;如果更高,它會在堆疊的更上"
1129-
"層發出。靜態型別檢查器的行為不受 *category* 和 *stacklevel* 引數的影響。"
1129+
"則在 runtime 不會發出警告。*stacklevel* 決定了警告發出的位置。如果它是 "
1130+
"``1``\\ (預設值),警告會在已棄用物件的直接呼叫者處發出;如果更高,它會在堆"
1131+
"疊的更上層發出。靜態型別檢查器的行為不受 *category* 和 *stacklevel* 引數的影"
1132+
"響。"
11301133

11311134
#: ../../library/warnings.rst:577
11321135
msgid ""
@@ -1159,10 +1162,11 @@ msgid ""
11591162
"has attributes with the same names as the arguments to :func:`showwarning`."
11601163
msgstr ""
11611164
"一個情境管理器,它會複製並在退出時恢復警告過濾器和 :func:`showwarning` 函式。"
1162-
"如果 *record* 引數為 :const:`False`\\ (預設值),情境管理器在進入時回傳 :class:"
1163-
"`None`。如果 *record* 為 :const:`True`,則會回傳一個串列,該串列會由自訂的 :"
1164-
"func:`showwarning` 函式(該函式也會抑制對 ``sys.stdout`` 的輸出)所看到的物件"
1165-
"逐步填充。串列中的每個物件都具有與 :func:`showwarning` 的引數同名的屬性。"
1165+
"如果 *record* 引數為 :const:`False`\\ (預設值),情境管理器在進入時回傳 :"
1166+
"class:`None`。如果 *record* 為 :const:`True`,則會回傳一個串列,該串列會由自"
1167+
"訂的 :func:`showwarning` 函式(該函式也會抑制對 ``sys.stdout`` 的輸出)所看到"
1168+
"的物件逐步填充。串列中的每個物件都具有與 :func:`showwarning` 的引數同名的屬"
1169+
"性。"
11661170

11671171
#: ../../library/warnings.rst:602
11681172
msgid ""

0 commit comments

Comments
 (0)