From: Fred Drake Date: Wed, 9 May 2001 21:13:23 +0000 (+0000) Subject: Add a new FCNTL.py backward compatibility module that issues a deprecation X-Git-Tag: v2.2a3~1856 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76d61399614604504f0bb1bf149d0f1158593524;p=thirdparty%2FPython%2Fcpython.git Add a new FCNTL.py backward compatibility module that issues a deprecation warning. This is similar to the TERMIOS backward compatbility module. --- diff --git a/Lib/FCNTL.py b/Lib/FCNTL.py new file mode 100644 index 000000000000..a31a7f8e989b --- /dev/null +++ b/Lib/FCNTL.py @@ -0,0 +1,14 @@ +"""Backward-compatibility version of FCNTL; export constants exported by +fcntl, and issue a deprecation warning. +""" + +import warnings +warnings.warn("the FCNTL module is deprecated; please use fcntl", + DeprecationWarning) + + +# Export the constants known to the fcntl module: +from fcntl import * + +# and *only* the constants: +__all__ = [s for s in dir() if s[0] in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]