mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
98dba73010
Rename `pathlib.Path.rmtree()` to `delete()`, and add support for deleting non-directories. This simplifies the interface for users, and nicely complements the upcoming `move()` and `copy()` methods (which will also accept any type of file.)