Skip to content

Commit c2a0882

Browse files
[po] auto sync
1 parent d320b36 commit c2a0882

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.35%", "updated_at": "2025-04-15T02:24:38Z"}
1+
{"translation": "81.35%", "updated_at": "2025-04-16T03:13:40Z"}

whatsnew/3.4.po

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3775,6 +3775,25 @@ msgid ""
37753775
"are no longer needed because their functions are now handled automatically "
37763776
"by the import system."
37773777
msgstr ""
3778+
"正如 :ref:`whatsnew-pep-451` 所提及的,:mod:`importlib` 中的多个方法和函数已被弃用: "
3779+
":meth:`!importlib.find_loader` 被 :func:`importlib.util.find_spec` 替代; "
3780+
":meth:`!importlib.machinery.PathFinder.find_module` 被 "
3781+
":meth:`importlib.machinery.PathFinder.find_spec` 替代; "
3782+
":meth:`!importlib.abc.MetaPathFinder.find_module` 被 "
3783+
":meth:`importlib.abc.MetaPathFinder.find_spec` 替代; "
3784+
":meth:`!importlib.abc.PathEntryFinder.find_loader` 和 :meth:`!find_module` 被 "
3785+
":meth:`importlib.abc.PathEntryFinder.find_spec` 替代; 所有的 :samp:`{xxx}Loader` "
3786+
"ABC ``load_module`` 方法 (:meth:`!importlib.abc.Loader.load_module`, "
3787+
":meth:`!importlib.abc.InspectLoader.load_module`, "
3788+
":meth:`!importlib.abc.FileLoader.load_module`, "
3789+
":meth:`!importlib.abc.SourceLoader.load_module`) 应当不再被实现,加载器应当改为实现 "
3790+
"``exec_module`` 方法 (:meth:`importlib.abc.Loader.exec_module`, "
3791+
":meth:`importlib.abc.InspectLoader.exec_module` "
3792+
":meth:`importlib.abc.SourceLoader.exec_module`) 并让导入系统处理其余的操作; 而 "
3793+
":meth:`!importlib.abc.Loader.module_repr`, "
3794+
":meth:`!importlib.util.module_for_loader`, "
3795+
":meth:`!importlib.util.set_loader` 和 :meth:`!importlib.util.set_package` "
3796+
"已不再需要因为它们的功能现在将由导入系统自动处理。"
37783797

37793798
#: ../../whatsnew/3.4.rst:2103
37803799
msgid ""
@@ -4002,6 +4021,10 @@ msgid ""
40024021
"objects that do not have a __format__ method that handles it. See "
40034022
":issue:`7994` for background."
40044023
msgstr ""
4024+
":meth:`object.__format__` 不再接受非空格式字符串,它现在会改为引发 :exc:`TypeError`。 使用非空字符串自 "
4025+
"Python 3.2 起已被弃用。 做出此项改变是为了防止当对象获得 __format__ "
4026+
"方法时之前可用(但不正确)的代码执行失败的情况,这意味着现在当你对没有用于处理 ``'s'`` 的 __format__ "
4027+
"方法的对象使用该格式代码时你的代码可能会引发 :exc:`TypeError`。 请参阅 :issue:`7994` 了解相关背景。"
40054028

40064029
#: ../../whatsnew/3.4.rst:2215
40074030
msgid ""

0 commit comments

Comments
 (0)