Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 02bedcd36dda52f3b97a78ebaa7ecd6e94df7c1d authored by cvs2svn on 05 December 2003, 04:34:04 UTC
This commit was manufactured by cvs2svn to create tag 'r233c1'.
Tip revision: 02bedcd
FCNTL.py
"""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"]
back to top