[Python-checkins] r63343 - in python/trunk: Doc/library/statvfs.rst Lib/statvfs.py Lib/test/test_py3kwarn.py Misc/NEWS
brett.cannon
python-checkins at python.org
Fri May 16 02:50:02 CEST 2008
Author: brett.cannon
Date: Fri May 16 02:50:02 2008
New Revision: 63343
Log:
Deprecated statvfs for removal in 3.0.
Modified:
python/trunk/Doc/library/statvfs.rst
python/trunk/Lib/statvfs.py
python/trunk/Lib/test/test_py3kwarn.py
python/trunk/Misc/NEWS
Modified: python/trunk/Doc/library/statvfs.rst
==============================================================================
--- python/trunk/Doc/library/statvfs.rst (original)
+++ python/trunk/Doc/library/statvfs.rst Fri May 16 02:50:02 2008
@@ -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 at zadka.site.co.il>
Modified: python/trunk/Lib/statvfs.py
==============================================================================
--- python/trunk/Lib/statvfs.py (original)
+++ python/trunk/Lib/statvfs.py Fri May 16 02:50:02 2008
@@ -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().
Modified: python/trunk/Lib/test/test_py3kwarn.py
==============================================================================
--- python/trunk/Lib/test/test_py3kwarn.py (original)
+++ python/trunk/Lib/test/test_py3kwarn.py Fri May 16 02:50:02 2008
@@ -130,7 +130,7 @@
# 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',
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Fri May 16 02:50:02 2008
@@ -37,6 +37,8 @@
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.
More information about the Python-checkins
mailing list