mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
#18705: merge with 3.3.
This commit is contained in:
commit
9a3777e525
26 changed files with 49 additions and 49 deletions
|
@ -56,7 +56,7 @@ class ReadError(OSError):
|
|||
"""Raised when an archive cannot be read"""
|
||||
|
||||
class RegistryError(Exception):
|
||||
"""Raised when a registery operation with the archiving
|
||||
"""Raised when a registry operation with the archiving
|
||||
and unpacking registeries fails"""
|
||||
|
||||
|
||||
|
@ -193,7 +193,7 @@ def copystat(src, dst, *, follow_symlinks=True):
|
|||
# * follow_symlinks=False,
|
||||
# * lchown() is unavailable, and
|
||||
# * either
|
||||
# * fchownat() is unvailable or
|
||||
# * fchownat() is unavailable or
|
||||
# * fchownat() doesn't implement AT_SYMLINK_NOFOLLOW.
|
||||
# (it returned ENOSUP.)
|
||||
# therefore we're out of options--we simply cannot chown the
|
||||
|
@ -983,7 +983,7 @@ elif os.name == 'nt':
|
|||
def disk_usage(path):
|
||||
"""Return disk usage statistics about the given path.
|
||||
|
||||
Returned valus is a named tuple with attributes 'total', 'used' and
|
||||
Returned values is a named tuple with attributes 'total', 'used' and
|
||||
'free', which are the amount of total, used and free space, in bytes.
|
||||
"""
|
||||
total, free = nt._getdiskusage(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue