summaryrefslogtreecommitdiffstats
path: root/Doc/library/shutil.rst
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2017-05-05 21:27:12 (GMT)
committerBrett Cannon <brettcannon@users.noreply.github.com>2017-05-05 21:27:12 (GMT)
commita12df7b7d40dbf47825917c8fa03d2c09b5a382c (patch)
treead818268e3f1adb56743292245eac64c8ce9be20 /Doc/library/shutil.rst
parenta1054c3b0037d4c2a5492e79fc193f36245366c7 (diff)
downloadcpython-a12df7b7d40dbf47825917c8fa03d2c09b5a382c.zip
cpython-a12df7b7d40dbf47825917c8fa03d2c09b5a382c.tar.gz
cpython-a12df7b7d40dbf47825917c8fa03d2c09b5a382c.tar.bz2
bpo-30218: support path-like objects in shutil.unpack_archive() (GH-1367)
Thanks to Jelle Zijlstra for the patch.
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r--Doc/library/shutil.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index 41e5baf..2b84fa2 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -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]])