bpo-30218: support path-like objects in shutil.unpack_archive() (GH-1367)

Thanks to Jelle Zijlstra for the patch.
This commit is contained in:
Jelle Zijlstra 2017-05-05 14:27:12 -07:00 committed by Brett Cannon
parent a1054c3b00
commit a12df7b7d4
4 changed files with 26 additions and 4 deletions

View file

@ -550,6 +550,9 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
registered for that extension. In case none is found,
a :exc:`ValueError` is raised.
.. versionchanged:: 3.7
Accepts a :term:`path-like object` for *filename* and *extract_dir*.
.. function:: register_unpack_format(name, extensions, function[, extra_args[, description]])