Mercurial > cpython-lru_cache-weakref
diff Lib/shutil.py @ 72182:b166dc85f604
Add missing name in shutil.__all__
| author | Éric Araujo <merwok@netwok.org> |
|---|---|
| date | Thu, 01 Sep 2011 08:31:51 +0200 |
| parents | d1fd0f0f8e68 |
| children | df673c6d3e0b |
line wrap: on
line diff
--- a/Lib/shutil.py Thu Sep 01 07:01:13 2011 +0200 +++ b/Lib/shutil.py Thu Sep 01 08:31:51 2011 +0200 @@ -35,7 +35,7 @@ "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 @@ 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.
