diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-16 19:00:55 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-16 19:00:55 +0200 |
commit | 3bb38e2e61977ff815de6c33a516d2bd98fcbfd9 (patch) | |
tree | 56d1cf2051a44ffba627fd719bc25431bc43b41e /Lib/shutil.py | |
parent | 47e124a68b8201284c0b01ff9d1c08abf0059a27 (diff) | |
parent | 5188d1bcdb133ee8f36a7d2efc14562ce91c8ff7 (diff) | |
download | cpython-3bb38e2e61977ff815de6c33a516d2bd98fcbfd9.tar.gz |
Issue #14061: Misc fixes and cleanups in archiving code in shutil.
Imporoved the documentation and tests for make_archive() and unpack_archive().
Improved error handling when corresponding compress module is not available.
Brake circular dependency between shutil and tarfile modules.
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r-- | Lib/shutil.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py index 16ca80bd38..bd4760f1a7 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -981,6 +981,9 @@ if hasattr(os, 'statvfs'): __all__.append('disk_usage') _ntuple_diskusage = collections.namedtuple('usage', 'total used free') + _ntuple_diskusage.total.__doc__ = 'Total space in bytes' + _ntuple_diskusage.used.__doc__ = 'Used space in bytes' + _ntuple_diskusage.free.__doc__ = 'Free space in bytes' def disk_usage(path): """Return disk usage statistics about the given path. |