diff options
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r-- | Lib/posixfile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py index 763c605..2fa600f 100644 --- a/Lib/posixfile.py +++ b/Lib/posixfile.py @@ -52,7 +52,9 @@ f.lock(mode [, len [, start [, whence]]]) note: - the '?' modifier prevents a region from being locked; it is query only """ - +import warnings +warnings.warn("The posixfile module is deprecated; " + "fcntl.lockf() provides better locking", DeprecationWarning, 2) class _posixfile_: """File wrapper class that provides extra POSIX file routines.""" |