mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
Remove the deprecated statcache module.
This commit is contained in:
parent
1bc82f891c
commit
4ebe364277
5 changed files with 2 additions and 12 deletions
|
|
@ -53,12 +53,6 @@ f.lock(mode [, len [, start [, whence]]])
|
||||||
query only
|
query only
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import warnings
|
|
||||||
warnings.warn(
|
|
||||||
"The posixfile module is obsolete and will disappear in the future",
|
|
||||||
DeprecationWarning)
|
|
||||||
del warnings
|
|
||||||
|
|
||||||
|
|
||||||
class _posixfile_:
|
class _posixfile_:
|
||||||
"""File wrapper class that provides extra POSIX file routines."""
|
"""File wrapper class that provides extra POSIX file routines."""
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,6 @@ warnings.filterwarnings("ignore", ".* 'pre' .*", DeprecationWarning,
|
||||||
r'pre$')
|
r'pre$')
|
||||||
warnings.filterwarnings("ignore", ".* regsub .*", DeprecationWarning,
|
warnings.filterwarnings("ignore", ".* regsub .*", DeprecationWarning,
|
||||||
r'^regsub$')
|
r'^regsub$')
|
||||||
warnings.filterwarnings("ignore", ".* statcache .*", DeprecationWarning,
|
|
||||||
r'statcache$')
|
|
||||||
|
|
||||||
class AllTest(unittest.TestCase):
|
class AllTest(unittest.TestCase):
|
||||||
|
|
||||||
|
|
@ -148,7 +146,6 @@ class AllTest(unittest.TestCase):
|
||||||
self.check_all("socket")
|
self.check_all("socket")
|
||||||
self.check_all("sre")
|
self.check_all("sre")
|
||||||
self.check_all("_strptime")
|
self.check_all("_strptime")
|
||||||
self.check_all("statcache")
|
|
||||||
self.check_all("symtable")
|
self.check_all("symtable")
|
||||||
self.check_all("tabnanny")
|
self.check_all("tabnanny")
|
||||||
self.check_all("tarfile")
|
self.check_all("tarfile")
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
import warnings
|
import warnings
|
||||||
warnings.filterwarnings('ignore', r".*posixfile module",
|
warnings.filterwarnings('ignore', r".*posixfile module",
|
||||||
DeprecationWarning, 'posixfile$')
|
DeprecationWarning, 'posixfile$')
|
||||||
warnings.filterwarnings('ignore', r".*statcache module",
|
|
||||||
DeprecationWarning, 'statcache$')
|
|
||||||
|
|
||||||
from test.test_support import verbose
|
from test.test_support import verbose
|
||||||
|
|
||||||
|
|
@ -80,7 +78,6 @@ import shlex
|
||||||
import shutil
|
import shutil
|
||||||
import smtplib
|
import smtplib
|
||||||
import sndhdr
|
import sndhdr
|
||||||
import statcache
|
|
||||||
import statvfs
|
import statvfs
|
||||||
import stringold
|
import stringold
|
||||||
import sunau
|
import sunau
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- the depecated statcache module was removed.
|
||||||
|
|
||||||
- the shelve module no longer uses the deprecated binary parameter.
|
- the shelve module no longer uses the deprecated binary parameter.
|
||||||
|
|
||||||
- the pstats module no longer uses the deprecated ignore() method.
|
- the pstats module no longer uses the deprecated ignore() method.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue