@@ -34,6 +34,8 @@ msgid ""
3434"data. If you need to parse untrusted or unauthenticated data see :ref:`xml-"
3535"vulnerabilities`."
3636msgstr ""
37+ ":mod:`pyexpat` 模块对于恶意构建的数据是不安全的。 如果你需要解析不受信任或未经身份验证的数据,请参阅 :ref:`xml-"
38+ "vulnerabilities`。"
3739
3840#: ../../library/pyexpat.rst:28
3941msgid ""
@@ -45,38 +47,44 @@ msgid ""
4547"fed to the parser, the handler functions are called for the character data "
4648"and markup in the XML document."
4749msgstr ""
50+ ":mod:`xml.parsers.expat` 模块是针对 Expat 非验证 XML 解析器的 Python 接口。 此模块提供了一个扩展类型 "
51+ ":class:`xmlparser`,它代表一个 XML 解析器的当前状态。 在创建一个 :class:`xmlparser` "
52+ "对象之后,该对象的各个属性可被设置为相应的处理句柄函数。 随后当将一个 XML 文档送入解析器时,就会为该 XML "
53+ "文档中的字符数据和标记调用处理句柄函数。"
4854
4955#: ../../library/pyexpat.rst:38
5056msgid ""
5157"This module uses the :mod:`pyexpat` module to provide access to the Expat "
5258"parser. Direct use of the :mod:`pyexpat` module is deprecated."
5359msgstr ""
60+ "此模块使用 :mod:`pyexpat` 模块来提供对 Expat 解析器的访问。 直接使用 :mod:`pyexpat` 模块的方式已被弃用。"
5461
5562#: ../../library/pyexpat.rst:41
5663msgid "This module provides one exception and one type object:"
57- msgstr ""
64+ msgstr "此模块提供了一个异常和一个类型对象: "
5865
5966#: ../../library/pyexpat.rst:46
6067msgid ""
6168"The exception raised when Expat reports an error. See section :ref"
6269":`expaterror-objects` for more information on interpreting Expat errors."
6370msgstr ""
71+ "此异常会在 Expat 报错时被引发。 请参阅 :ref:`expaterror-objects` 一节了解有关解读 Expat 错误的更多信息。"
6472
6573#: ../../library/pyexpat.rst:52
6674msgid "Alias for :exc:`ExpatError`."
67- msgstr ""
75+ msgstr ":exc:`ExpatError` 的别名。 "
6876
6977#: ../../library/pyexpat.rst:57
7078msgid "The type of the return values from the :func:`ParserCreate` function."
71- msgstr ""
79+ msgstr "来自 :func:`ParserCreate` 函数的返回值的类型。 "
7280
7381#: ../../library/pyexpat.rst:59
7482msgid "The :mod:`xml.parsers.expat` module contains two functions:"
75- msgstr ""
83+ msgstr ":mod:`xml.parsers.expat` 模块包含两个函数: "
7684
7785#: ../../library/pyexpat.rst:64
7886msgid "Returns an explanatory string for a given error number *errno*."
79- msgstr ""
87+ msgstr "返回给定错误号 *errno* 的解释性字符串。 "
8088
8189#: ../../library/pyexpat.rst:69
8290msgid ""
0 commit comments