Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 62460bb376fda652834e27d7b8e13ca9a1733a1f authored by cvs2svn on 24 September 2003, 00:51:10 UTC
This commit was manufactured by cvs2svn to create tag 'r231'.
Tip revision: 62460bb
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