Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1904eda

Browse files
[po] auto sync
1 parent 90c3b7f commit 1904eda

4 files changed

Lines changed: 6860 additions & 6833 deletions

File tree

library/exceptions.po

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.9\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2021-04-03 05:56+0000\n"
15+
"POT-Creation-Date: 2021-04-30 06:13+0000\n"
1616
"PO-Revision-Date: 2017-02-16 23:10+0000\n"
1717
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
1818
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -90,27 +90,21 @@ msgstr ""
9090
msgid ""
9191
"When raising a new exception (rather than using a bare ``raise`` to re-raise"
9292
" the exception currently being handled), the implicit exception context can "
93-
"be supplemented with an explicit cause by using :keyword:`from` with "
93+
"be supplemented with an explicit cause by using :keyword:`from<raise>` with "
9494
":keyword:`raise`::"
9595
msgstr ""
96-
"当引发一个新的异常(而不是简单地使用 ``raise`` 来重新引发当前在处理的异常)时,隐式的异常上下文可以通过使用带有 "
97-
":keyword:`raise` 的 :keyword:`from` 来补充一个显式的原因::"
9896

9997
#: ../../library/exceptions.rst:50
10098
msgid ""
101-
"The expression following :keyword:`from` must be an exception or ``None``. "
102-
"It will be set as :attr:`__cause__` on the raised exception. Setting "
103-
":attr:`__cause__` also implicitly sets the :attr:`__suppress_context__` "
104-
"attribute to ``True``, so that using ``raise new_exc from None`` effectively"
105-
" replaces the old exception with the new one for display purposes (e.g. "
106-
"converting :exc:`KeyError` to :exc:`AttributeError`), while leaving the old "
107-
"exception available in :attr:`__context__` for introspection when debugging."
108-
msgstr ""
109-
"跟在 :keyword:`from` 之后的表达式必须为一个异常或 ``None``。 它将在所引发的异常上被设置为 "
110-
":attr:`__cause__`。 设置 :attr:`__cause__` 还会隐式地将 :attr:`__suppress_context__` "
111-
"属性设为 ``True``,这样使用 ``raise new_exc from None`` 可以有效地将旧异常替换为新异常来显示其目的 (例如将 "
112-
":exc:`KeyError` 转换为 :exc:`AttributeError`),同时让旧异常在 :attr:`__context__` "
113-
"中保持可用状态以便在调试时进行内省。"
99+
"The expression following :keyword:`from<raise>` must be an exception or "
100+
"``None``. It will be set as :attr:`__cause__` on the raised exception. "
101+
"Setting :attr:`__cause__` also implicitly sets the "
102+
":attr:`__suppress_context__` attribute to ``True``, so that using ``raise "
103+
"new_exc from None`` effectively replaces the old exception with the new one "
104+
"for display purposes (e.g. converting :exc:`KeyError` to "
105+
":exc:`AttributeError`), while leaving the old exception available in "
106+
":attr:`__context__` for introspection when debugging."
107+
msgstr ""
114108

115109
#: ../../library/exceptions.rst:59
116110
msgid ""

0 commit comments

Comments
 (0)