@@ -212,42 +212,46 @@ msgstr ""
212212msgid ""
213213"This class defines the following properties, and thus values for the "
214214"following may be passed in the constructor of any policy class:"
215- msgstr ""
215+ msgstr "这个类定义了下列特征属性,因此下列值可以被传给任何策略类的构造器: "
216216
217217#: ../../library/email.policy.rst:169
218218msgid ""
219219"The maximum length of any line in the serialized output, not counting the "
220220"end of line character(s). Default is 78, per :rfc:`5322`. A value of ``0``"
221221" or :const:`None` indicates that no line wrapping should be done at all."
222222msgstr ""
223+ "序列化输出中任何行的最大长度,不计入行字符的末尾。 默认值为 78,基于 :rfc:`5322`。 值为 ``0`` 或 :const:`None` "
224+ "表示完全没有行包装。"
223225
224226#: ../../library/email.policy.rst:177
225227msgid ""
226228"The string to be used to terminate lines in serialized output. The default "
227229"is ``\\ n`` because that's the internal end-of-line discipline used by "
228230"Python, though ``\\ r\\ n`` is required by the RFCs."
229231msgstr ""
232+ "用来在序列化输出中确定行的字符串。 默认值为 ``\\ n`` 因为这是 Python 所使用的内部行结束符规范,但 RFC 的要求是 "
233+ "``\\ r\\ n``。"
230234
231235#: ../../library/email.policy.rst:184
232236msgid ""
233237"Controls the type of Content Transfer Encodings that may be or are required "
234238"to be used. The possible values are:"
235- msgstr ""
239+ msgstr "控制可能要求使用的内容传输编码格式类型。 可能的值包括: "
236240
237241#: ../../library/email.policy.rst:190
238242msgid "``7bit``"
239- msgstr ""
243+ msgstr "``7bit`` "
240244
241245#: ../../library/email.policy.rst:190
242246msgid ""
243247"all data must be \" 7 bit clean\" (ASCII-only). This means that where "
244248"necessary data will be encoded using either quoted-printable or base64 "
245249"encoding."
246- msgstr ""
250+ msgstr "所有数据必须为 \" 纯 7 比特位 \" (仅 ASCII)。 这意味着在必要情况下数据将使用可打印引用形式或 base64 编码格式进行编码。 "
247251
248252#: ../../library/email.policy.rst:194
249253msgid "``8bit``"
250- msgstr ""
254+ msgstr "``8bit`` "
251255
252256#: ../../library/email.policy.rst:194
253257msgid ""
@@ -256,6 +260,8 @@ msgid ""
256260"and :attr:`~EmailPolicy.utf8` below for exceptions), but body parts may use "
257261"the ``8bit`` CTE."
258262msgstr ""
263+ "数据不会被限制为纯 7 比特位。 标头中的数据仍要求仅 ASCII 因此将被编码(参阅下文的 :meth:`fold_binary` 和 "
264+ ":attr:`~EmailPolicy.utf8` 了解例外情况),但消息体部分可能使用 ``8bit`` CTE。"
259265
260266#: ../../library/email.policy.rst:200
261267msgid ""
@@ -264,6 +270,9 @@ msgid ""
264270"``Generator`` is operating under a policy that specifies ``cte_type=8bit``, "
265271"it will act as if ``cte_type`` is ``7bit``."
266272msgstr ""
273+ "``cte_type`` 值为 ``8bit`` 仅适用于 ``BytesGenerator`` 而非 "
274+ "``Generator``,因为字符串不能包含二进制数据。 如果 ``Generator`` 运行于指定了 ``cte_type=8bit`` "
275+ "的策略,它的行为将与 ``cte_type`` 为 ``7bit`` 相同。"
267276
268277#: ../../library/email.policy.rst:208
269278msgid ""
0 commit comments