Add a warning to the posixfile module stating that it will go away.

This commit is contained in:
Fred Drake 2001-10-24 22:03:35 +00:00
parent bc006af3d0
commit 9242a4af17
1 changed files with 7 additions and 0 deletions

View File

@ -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."""