From: Éric Araujo Date: Thu, 1 Sep 2011 06:31:51 +0000 (+0200) Subject: Add missing name in shutil.__all__ X-Git-Tag: v3.3.0a1~1581^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ac4a5d6d239e3ecdf3ddbe6c32942d1266ec485;p=python Add missing name in shutil.__all__ --- diff --git a/Lib/shutil.py b/Lib/shutil.py index 4b752627fa..0c096cba55 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -35,7 +35,7 @@ __all__ = ["copyfileobj", "copyfile", "copymode", "copystat", "copy", "copy2", "register_archive_format", "unregister_archive_format", "get_unpack_formats", "register_unpack_format", "unregister_unpack_format", "unpack_archive", - "ignore_patterns"] + "ignore_patterns", "chown"] # disk_usage is added later, if available on the platform class Error(EnvironmentError): @@ -791,6 +791,7 @@ elif os.name == 'nt': used = total - free return _ntuple_diskusage(total, used, free) + def chown(path, user=None, group=None): """Change owner user and group of the given path.