diff options
author | Fred Drake <fdrake@acm.org> | 2001-10-24 22:03:35 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-10-24 22:03:35 (GMT) |
commit | 9242a4af177c4c62dfacdf633eb1bbdeba273b3c (patch) | |
tree | 89d1a4b1ba97d065738e46414dc8cf5901dc5120 /Lib/posixfile.py | |
parent | bc006af3d044668e4e58272b045f7c736eda7291 (diff) | |
download | cpython-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/posixfile.py')
-rw-r--r-- | Lib/posixfile.py | 7 |
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.""" |