Skip to content

Commit bbc212b

Browse files
committed
Fix sys._set_exception() docstring wording
1 parent bf4ef1e commit bbc212b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Python/clinic/sysmodule.c.h‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Python/sysmodule.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,14 +860,14 @@ sys._set_exception
860860
Set the current exception.
861861
862862
Subsequent calls to sys.exception()/sys.exc_info() will return
863-
the provided exception until another exception is raised in the
863+
the provided exception until another exception is caught in the
864864
current thread or the execution stack returns to a frame where
865865
another exception is being handled.
866866
[clinic start generated code]*/
867867

868868
static PyObject *
869869
sys__set_exception_impl(PyObject *module, PyObject *exception)
870-
/*[clinic end generated code: output=39e119ee6b747085 input=46da3b45313a1cfa]*/
870+
/*[clinic end generated code: output=39e119ee6b747085 input=9c0495269be0821d]*/
871871
{
872872
if (!Py_IsNone(exception) && !PyExceptionInstance_Check(exception)){
873873
PyErr_SetString(

0 commit comments

Comments
 (0)