mirror of
https://github.com/python/cpython.git
synced 2025-10-29 01:22:59 +00:00
gh-102828: add onexc arg to shutil.rmtree. Deprecate onerror. (#102829)
This commit is contained in:
parent
4d1f033986
commit
d51a6dc28e
5 changed files with 256 additions and 56 deletions
|
|
@ -337,6 +337,11 @@ shutil
|
|||
of the process to *root_dir* to perform archiving.
|
||||
(Contributed by Serhiy Storchaka in :gh:`74696`.)
|
||||
|
||||
* :func:`shutil.rmtree` now accepts a new argument *onexc* which is an
|
||||
error handler like *onerror* but which expects an exception instance
|
||||
rather than a *(typ, val, tb)* triplet. *onerror* is deprecated.
|
||||
(Contributed by Irit Katriel in :gh:`102828`.)
|
||||
|
||||
|
||||
sqlite3
|
||||
-------
|
||||
|
|
@ -498,6 +503,10 @@ Deprecated
|
|||
fields are deprecated. Use :data:`sys.last_exc` instead.
|
||||
(Contributed by Irit Katriel in :gh:`102778`.)
|
||||
|
||||
* The *onerror* argument of :func:`shutil.rmtree` is deprecated. Use *onexc*
|
||||
instead. (Contributed by Irit Katriel in :gh:`102828`.)
|
||||
|
||||
|
||||
Pending Removal in Python 3.13
|
||||
------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue