summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-24 22:03:35 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-24 22:03:35 (GMT)
commit9242a4af177c4c62dfacdf633eb1bbdeba273b3c (patch)
tree89d1a4b1ba97d065738e46414dc8cf5901dc5120 /Lib
parentbc006af3d044668e4e58272b045f7c736eda7291 (diff)
downloadcpython-9242a4af177c4c62dfacdf633eb1bbdeba273b3c.zip
cpython-9242a4af177c4c62dfacdf633eb1bbdeba273b3c.tar.gz
cpython-9242a4af177c4c62dfacdf633eb1bbdeba273b3c.tar.bz2
Add a warning to the posixfile module stating that it will go away.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/posixfile.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py
index dcd65cd..e2eb024 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."""