]> granicus.if.org Git - python/commitdiff
Add a warning to the posixfile module stating that it will go away.
authorFred Drake <fdrake@acm.org>
Wed, 24 Oct 2001 22:03:35 +0000 (22:03 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 24 Oct 2001 22:03:35 +0000 (22:03 +0000)
Lib/posixfile.py

index dcd65cd69d088f76e5ad9174ca153ef07ad6b745..e2eb02478115a4cf19c30cc4d6d74c8009ddf1a0 100644 (file)
@@ -53,6 +53,13 @@ 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."""