diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-16 00:50:02 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-16 00:50:02 (GMT) |
commit | fa40bbf6252d224fb479d051d236edf6a79a0c8d (patch) | |
tree | 3d4c3bd86b7262200f791a760808dda4b3e03980 | |
parent | 90f2cb422fb4226846ab81c21d3a140b92267f82 (diff) | |
download | cpython-fa40bbf6252d224fb479d051d236edf6a79a0c8d.zip cpython-fa40bbf6252d224fb479d051d236edf6a79a0c8d.tar.gz cpython-fa40bbf6252d224fb479d051d236edf6a79a0c8d.tar.bz2 |
Deprecated statvfs for removal in 3.0.
-rw-r--r-- | Doc/library/statvfs.rst | 6 | ||||
-rw-r--r-- | Lib/statvfs.py | 3 | ||||
-rw-r--r-- | Lib/test/test_py3kwarn.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
4 files changed, 12 insertions, 1 deletions
diff --git a/Doc/library/statvfs.rst b/Doc/library/statvfs.rst index 0b32f65..63fcfa4 100644 --- a/Doc/library/statvfs.rst +++ b/Doc/library/statvfs.rst @@ -3,6 +3,12 @@ .. module:: statvfs :synopsis: Constants for interpreting the result of os.statvfs(). + :deprecated: + +.. deprecated:: 2.6 + The :mod:`statvfs` module has been deprecated for removal in Python 3.0. + + .. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il> diff --git a/Lib/statvfs.py b/Lib/statvfs.py index 06a323f..f572422 100644 --- a/Lib/statvfs.py +++ b/Lib/statvfs.py @@ -1,4 +1,7 @@ """Constants for interpreting the results of os.statvfs() and os.fstatvfs().""" +from warnings import warnpy3k +warnpy3k("the statvfs module has been removed in Python 3.0", stacklevel=2) +del warnpy3k # Indices for statvfs struct members in the tuple returned by # os.statvfs() and os.fstatvfs(). diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 2561f2a..6864dae 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -130,7 +130,7 @@ class TestStdlibRemovals(unittest.TestCase): # import side-effect. all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec', 'Bastion', 'compiler', 'dircache', 'fpformat', - 'ihooks', 'mhlib') + 'ihooks', 'mhlib', 'statvfs') inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb', 'cdplayer', 'CL', 'cl', 'DEVICE', 'GL', 'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl', @@ -37,6 +37,8 @@ Extension Modules Library ------- +- The statvfs module has been deprecated for removal in Python 3.0. + - The sunaudiodev and SUNAUDIODEV modules have been deprecated for removal in Python 3.0. |