summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJoe Pamer <jopamer@users.noreply.github.com>2018-09-25 14:57:36 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-25 14:57:36 (GMT)
commitc8c0249c9e8f61ab7670119a5a5278354df27bbb (patch)
tree79ccb9272364f0e7265b4cedce939b4df5129d38 /Doc
parent604e7b9931f9e7881a2941816e538f5f15930db8 (diff)
downloadcpython-c8c0249c9e8f61ab7670119a5a5278354df27bbb.zip
cpython-c8c0249c9e8f61ab7670119a5a5278354df27bbb.tar.gz
cpython-c8c0249c9e8f61ab7670119a5a5278354df27bbb.tar.bz2
bpo-32557: allow shutil.disk_usage to take a file path on Windows also (GH-9372)
https://bugs.python.org/issue32557
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/shutil.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index c692cf4..d882627 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -343,11 +343,14 @@ Directory and files operations
Return disk usage statistics about the given path as a :term:`named tuple`
with the attributes *total*, *used* and *free*, which are the amount of
- total, used and free space, in bytes. On Windows, *path* must be a
- directory; on Unix, it can be a file or directory.
+ total, used and free space, in bytes. *path* may be a file or a
+ directory.
.. versionadded:: 3.3
+ .. versionchanged:: 3.8
+ On Windows, *path* can now be a file or directory.
+
Availability: Unix, Windows.
.. function:: chown(path, user=None, group=None)