Skip to content

Commit 01fb9de

Browse files
committed
Add depreciation warning for sys.print_exception
1 parent 3825822 commit 01fb9de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/library/sys.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Functions
1717

1818
.. function:: print_exception(exc, file=sys.stdout, /)
1919

20+
This function is being deprecated and will be removed starting in
21+
CircuitPython 10.x, `traceback.print_exception()` should be used instead.
22+
2023
Print exception with a traceback to a file-like object *file* (or
2124
`sys.stdout` by default).
2225

0 commit comments

Comments
 (0)