mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Deprecated statvfs for removal in 3.0.
This commit is contained in:
parent
90f2cb422f
commit
fa40bbf625
4 changed files with 12 additions and 1 deletions
|
@ -3,6 +3,12 @@
|
||||||
|
|
||||||
.. module:: statvfs
|
.. module:: statvfs
|
||||||
:synopsis: Constants for interpreting the result of os.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>
|
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
"""Constants for interpreting the results of os.statvfs() and os.fstatvfs()."""
|
"""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
|
# Indices for statvfs struct members in the tuple returned by
|
||||||
# os.statvfs() and os.fstatvfs().
|
# os.statvfs() and os.fstatvfs().
|
||||||
|
|
|
@ -130,7 +130,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
||||||
# import side-effect.
|
# import side-effect.
|
||||||
all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
|
all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
|
||||||
'Bastion', 'compiler', 'dircache', 'fpformat',
|
'Bastion', 'compiler', 'dircache', 'fpformat',
|
||||||
'ihooks', 'mhlib')
|
'ihooks', 'mhlib', 'statvfs')
|
||||||
inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb',
|
inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb',
|
||||||
'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
|
'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
|
||||||
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
|
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
|
||||||
|
|
|
@ -37,6 +37,8 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- The statvfs module has been deprecated for removal in Python 3.0.
|
||||||
|
|
||||||
- The sunaudiodev and SUNAUDIODEV modules have been deprecated for removal in
|
- The sunaudiodev and SUNAUDIODEV modules have been deprecated for removal in
|
||||||
Python 3.0.
|
Python 3.0.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue