From 9242a4af177c4c62dfacdf633eb1bbdeba273b3c Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 24 Oct 2001 22:03:35 +0000 Subject: [PATCH] Add a warning to the posixfile module stating that it will go away. --- Lib/posixfile.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lib/posixfile.py b/Lib/posixfile.py index dcd65cd69d0..e2eb0247811 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."""