commit | 9242a4af177c4c62dfacdf633eb1bbdeba273b3c | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Wed Oct 24 22:03:35 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Wed Oct 24 22:03:35 2001 +0000 |
tree | 89d1a4b1ba97d065738e46414dc8cf5901dc5120 | |
parent | bc006af3d044668e4e58272b045f7c736eda7291 [diff] [blame] |
Add a warning to the posixfile module stating that it will go away.
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 @@ 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."""