]> granicus.if.org Git - python/commitdiff
Remove the deprecated statcache module.
authorRaymond Hettinger <python@rcn.com>
Sun, 5 Dec 2004 04:55:14 +0000 (04:55 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 5 Dec 2004 04:55:14 +0000 (04:55 +0000)
Lib/lib-old/statcache.py [moved from Lib/statcache.py with 100% similarity]
Lib/posixfile.py
Lib/test/test___all__.py
Lib/test/test_sundry.py
Misc/NEWS

similarity index 100%
rename from Lib/statcache.py
rename to Lib/lib-old/statcache.py
index 5a7ed061153d6617a7daefd28dfdf20199099821..ddfdb780c15d83661a6ad5757ea101585a5f7511 100644 (file)
@@ -53,12 +53,6 @@ f.lock(mode [, len [, start [, whence]]])
               query only
 """
 
-import warnings
-warnings.warn(
-    "The posixfile module is obsolete and will disappear in the future",
-    DeprecationWarning)
-del warnings
-
 
 class _posixfile_:
     """File wrapper class that provides extra POSIX file routines."""
index 3bddcad96b86a7d4198db31f842d13a26b83a0b7..683867a871ccc97f25d08109ef62dde51bfaaef3 100644 (file)
@@ -9,8 +9,6 @@ warnings.filterwarnings("ignore", ".* 'pre' .*", DeprecationWarning,
                         r'pre$')
 warnings.filterwarnings("ignore", ".* regsub .*", DeprecationWarning,
                         r'^regsub$')
-warnings.filterwarnings("ignore", ".* statcache .*", DeprecationWarning,
-                        r'statcache$')
 
 class AllTest(unittest.TestCase):
 
@@ -148,7 +146,6 @@ class AllTest(unittest.TestCase):
         self.check_all("socket")
         self.check_all("sre")
         self.check_all("_strptime")
-        self.check_all("statcache")
         self.check_all("symtable")
         self.check_all("tabnanny")
         self.check_all("tarfile")
index 5112183d60970cf454b183eebd669f227ac6e6d7..ef28700e8ca5899765bb7d8c3fed81d099cc165c 100644 (file)
@@ -3,8 +3,6 @@
 import warnings
 warnings.filterwarnings('ignore', r".*posixfile module",
                         DeprecationWarning, 'posixfile$')
-warnings.filterwarnings('ignore', r".*statcache module",
-                        DeprecationWarning, 'statcache$')
 
 from test.test_support import verbose
 
@@ -80,7 +78,6 @@ import shlex
 import shutil
 import smtplib
 import sndhdr
-import statcache
 import statvfs
 import stringold
 import sunau
index ee0e03a0a4bbef1c9ef3ce21616cc87f56fabee7..4733bfb4913842dfe5a5d1b76edba25c69c80ddb 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,8 @@ Extension Modules
 Library
 -------
 
+- the depecated statcache module was removed.
+
 - the shelve module no longer uses the deprecated binary parameter.
 
 - the pstats module no longer uses the deprecated ignore() method.