Cause posixfile to raise a DeprecationWarning. Documented as deprecated since
Ptyhon 1.5.
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 @@
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."""