diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-07 11:26:49 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-07 11:26:49 +0200 |
commit | fea8d09bf0ebad6adf2279002d835ff296a7f55d (patch) | |
tree | 73ca50ab292431497197a4a2d8b62c431f4993c5 /Lib/shutil.py | |
parent | faa75439c2f0a6557df558ca14182381fc4ba546 (diff) | |
parent | 3e1d42acbdcfaf69778453a2a0ad47729963fcee (diff) | |
download | cpython-fea8d09bf0ebad6adf2279002d835ff296a7f55d.tar.gz |
Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
Original patch by Andreas St?hrk.
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 6cf88d9fac..90b71986a9 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -975,6 +975,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. |