Skip to content

gh-126662: Naming consistency for shutil._ntuple_diskusage #126723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ def unpack_archive(filename, extract_dir=None, format=None, *, filter=None):
if hasattr(os, 'statvfs'):

__all__.append('disk_usage')
_ntuple_diskusage = collections.namedtuple('usage', 'total used free')
_ntuple_diskusage = collections.namedtuple('_ntuple_diskusage', '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'
Expand All @@ -1382,7 +1382,7 @@ def disk_usage(path):
elif _WINDOWS:

__all__.append('disk_usage')
_ntuple_diskusage = collections.namedtuple('usage', 'total used free')
_ntuple_diskusage = collections.namedtuple('_ntuple_diskusage', 'total used free')

def disk_usage(path):
"""Return disk usage statistics about the given path.
Expand Down
Loading