]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Clean up shutil.disk_usage.
authorÉric Araujo <merwok@netwok.org>
Mon, 8 Aug 2011 14:51:11 +0000 (16:51 +0200)
committerÉric Araujo <merwok@netwok.org>
Mon, 8 Aug 2011 14:51:11 +0000 (16:51 +0200)
commite4d5b8e6463126852443123e27af1a2b737f841b
treeb7118735c36b963beaa94b285c6f557513212514
parent7dc76fdeb14e0a2bf1248d78c2439b5a244f8885
Clean up shutil.disk_usage.

- Move a test from call time to define time
- Add the function name to __all__
- Improve docstring and docs

A few lines are now duplicated (named tuple definition and docstring)
but I think the end result reads better.
Doc/library/shutil.rst
Lib/shutil.py