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

Skip to content

Commit b2977ac

Browse files
[po] auto sync
1 parent 143fad4 commit b2977ac

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tutorial/errors.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ msgstr "异常处理程序不仅处理 try 子句中遇到的异常,还处理
263263

264264
#: ../../tutorial/errors.rst:237
265265
msgid "Raising Exceptions"
266-
msgstr "抛出异常"
266+
msgstr "触发异常"
267267

268268
#: ../../tutorial/errors.rst:239
269269
msgid ""
270270
"The :keyword:`raise` statement allows the programmer to force a specified "
271271
"exception to occur. For example::"
272-
msgstr ":keyword:`raise` 语句允许程序员强制发生指定的异常。例如::"
272+
msgstr ":keyword:`raise` 语句支持强制触发指定的异常。例如"
273273

274274
#: ../../tutorial/errors.rst:247
275275
msgid ""
@@ -279,8 +279,8 @@ msgid ""
279279
"will be implicitly instantiated by calling its constructor with no "
280280
"arguments::"
281281
msgstr ""
282-
":keyword:`raise` 唯一的参数就是要抛出的异常。这个参数必须是一个异常实例或者是一个异常类(派生自 :class:`Exception` "
283-
"的类)。如果传递的是一个异常类,它将通过调用没有参数的构造函数来隐式实例化::"
282+
":keyword:`raise` 唯一的参数就是要触发的异常。这个参数必须是异常实例或异常类(派生自 :class:`Exception` "
283+
"的类)。如果传递的是异常类,将通过调用没有参数的构造函数来隐式实例化:"
284284

285285
#: ../../tutorial/errors.rst:254
286286
msgid ""
@@ -301,21 +301,21 @@ msgstr ":keyword:`raise` 语句允许可选的 :keyword:`from` 子句,它启
301301

302302
#: ../../tutorial/errors.rst:281
303303
msgid "This can be useful when you are transforming exceptions. For example::"
304-
msgstr "这在你要转换异常时很有用。 例如::"
304+
msgstr "这在要转换异常时很有用。例如:"
305305

306306
#: ../../tutorial/errors.rst:302
307307
msgid ""
308308
"Exception chaining happens automatically when an exception is raised inside "
309309
"an :keyword:`except` or :keyword:`finally` section. Exception chaining can "
310310
"be disabled by using ``from None`` idiom:"
311311
msgstr ""
312-
"当在 :keyword:`except` 或 :keyword:`finally` 子句中引发异常时会自动产生异常链。 异常链可通过使用 ``from "
313-
"None`` 的形式来禁用:"
312+
"异常链在 :keyword:`except` 或 :keyword:`finally` 子句触发异常时自动生成。禁用异常链可使用 ``from "
313+
"None`` 习语:"
314314

315315
#: ../../tutorial/errors.rst:315
316316
msgid ""
317317
"For more information about chaining mechanics, see :ref:`bltin-exceptions`."
318-
msgstr "有关链机制的更多信息,请参阅 :ref:`bltin-exceptions`。"
318+
msgstr "异常链机制详见 :ref:`bltin-exceptions`。"
319319

320320
#: ../../tutorial/errors.rst:321
321321
msgid "User-defined Exceptions"

0 commit comments

Comments
 (0)