Skip to content

Commit 7deb130

Browse files
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent ee2edd5 commit 7deb130

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/library/sys.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,6 @@ always available. Unless explicitly noted otherwise, all variables are read-only
21602160
exceptions are handled.
21612161

21622162
.. versionchanged:: next
2163-
21642163
Exceptions are now printed with colorful text.
21652164

21662165
.. seealso::

Python/errors.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ make_unraisable_hook_args(PyThreadState *tstate, PyObject *exc_type,
14441444
14451445
It can be called to log the exception of a custom sys.unraisablehook.
14461446
1447-
This assumes 'file' neither NULL nor None.
1447+
This assumes 'file' is neither NULL nor None.
14481448
*/
14491449
static int
14501450
write_unraisable_exc_file(PyThreadState *tstate, PyObject *exc_type,
@@ -1501,7 +1501,8 @@ write_unraisable_exc_file(PyThreadState *tstate, PyObject *exc_type,
15011501
// Nothing else to do
15021502
return 0;
15031503
}
1504-
} else {
1504+
}
1505+
else {
15051506
Py_XDECREF(print_exception_fn);
15061507
}
15071508
// traceback module failed, fall back to pure C

0 commit comments

Comments
 (0)