From: Fred Drake Date: Wed, 24 Oct 2001 22:03:35 +0000 (+0000) Subject: Add a warning to the posixfile module stating that it will go away. X-Git-Tag: v2.2.1c1~1065 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9242a4af177c4c62dfacdf633eb1bbdeba273b3c;p=python Add a warning to the posixfile module stating that it will go away. --- diff --git a/Lib/posixfile.py b/Lib/posixfile.py index dcd65cd69d..e2eb024781 100644 --- a/Lib/posixfile.py +++ b/Lib/posixfile.py @@ -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."""